by thomseddon on 9/29/17, 1:11 PM with 132 comments
by js2 on 9/29/17, 3:16 PM
Also, this feature is pretty cool!
by kentonv on 9/29/17, 1:21 PM
(You may remember me as the tech lead of Sandstorm.io and Cap'n Proto.)
Happy to answer questions!
by Erwin on 9/29/17, 4:02 PM
https://cloudflareworkers.com/#9bdc354e936c05a4a1d7df7eb0d7f...
by niftich on 9/29/17, 2:36 PM
Any time you commit to someone else's API -- whether it's an actual industry standard, or simply some de facto widely used paradigm -- you incur risks; conversely, now that you're a vested participant, consider being involved in the future of the spec so it can evolve where it needs to meeting emerging needs around its new uses.
by j_s on 9/29/17, 5:30 PM
johansch: All I want is my code running on your nodes all around the world with an end-to-end ping that is less than 10 ms to the average client
dsl: Akamai Edge Compute is what they are asking for
by manigandham on 9/29/17, 4:31 PM
by narsil on 9/29/17, 6:15 PM
Is the lack of maturity also the reason for not choosing something like vm2 for NodeJS https://github.com/patriksimek/vm2
by TheAceOfHearts on 9/29/17, 9:17 PM
My experience with Service Worker APIs hasn't been very positive, although I don't have any suggestions for ways it could be improved, so I apologize for the non-constructive feedback. Maybe after using it more I'll change my mind. I recognize that everyone involved is likely working hard to provide an API that's capable of handling a wide range of problems, many of which I likely haven't even considered.
Here's a more actionable complaint: fetch doesn't support timeout or abortion. I have a hard time understanding how this isn't a problem for more people. Say what you will about XMLHttpRequest, at least it supports these basic features. As an end-user, I always find it absolutely infuriating when things hang forever because a developer forgot to handle failure cases.
I'd love it if you published a locally runnable version. Aside from making it easier to configure and experiment, it would give me peace of mind to know that I could continue to use the same configuration if Cloudflare decided to terminate my service.
by wcdolphin on 9/29/17, 2:58 PM
by Gys on 9/29/17, 1:45 PM
Is there any indication on price level ? And what about runtime duration ?
by throwaway84736 on 9/29/17, 2:10 PM
Seems like whenever there's co-execution (VMs, JavaScript, etc) there seem to be side channel leakages.
by polskibus on 9/29/17, 7:31 PM
by poorman on 9/29/17, 2:11 PM
by skrebbel on 9/29/17, 6:33 PM
by peterwwillis on 9/29/17, 7:12 PM
- Is it "Cloudflare Workers" or "Cloudflare Service Workers"?
A "Cloudflare Worker" is JavaScript you write that runs on Cloudflare's edge.
A "Cloudflare Service Worker" is specifically a worker which handles
HTTP traffic and is written against the Service Worker API.
Consufing naming convention. Now you have to say 'worker worker' or 'non-service worker' so nobody has to wonder if you meant 'service worker' when you only said 'worker'.by forcer on 9/29/17, 6:35 PM
by drdaeman on 9/29/17, 5:22 PM
If there is - this means that there (eventually) will be a way to have logs from the edge servers. I'm just thinking about a worker that would collect the requests and responses data in some circular buffer, and try to push it to the origin server. Eventually, the data will get through, so no CDN-returned 52x ("web server is not responding" etc) errors would go unnoticed.
by renke1 on 9/30/17, 2:07 PM
Render your SPA (different index.html) when a login cookie is set and otherwise render your landing page (yet another index.html)? - Such that that my http://example.com can always be cached (unless it needs to hit the server where the same logic is implemented).
And in general, how do you manage your landing page vs. your SPA?
by mxuribe on 9/29/17, 4:02 PM
Also, agree with other commentators here; nicely-written blog post!
by tyingq on 9/29/17, 2:15 PM
by valentinvieriu on 9/29/17, 10:28 PM
by ohnoesjmr on 9/29/17, 5:44 PM
by fowl2 on 10/2/17, 1:53 AM
Also a little concerned about writing anything substantial without an onprem version!
by hdhzy on 9/29/17, 9:04 PM
by michaelmior on 9/30/17, 7:50 PM
by djhworld on 9/29/17, 4:14 PM
by boundlessdreamz on 9/29/17, 3:10 PM
by angersock on 9/29/17, 1:45 PM
by briandear on 9/29/17, 8:17 PM