Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Out of curiosity, do you know if SSE would pipe through AWS Cloudfront? I can't find any information on this. Performance isn't an issue, it's just that I don't want to expose the backend directly so all requests go through AWS Cloudfront, but I'm stuck hard coding the url to the backend for SSE.

But yeah I agree SSE is much nicer, especially being built in Rails >= 3 and doing regular post requests the other way around.



view as:

Sorry, I know nothing about cloudfront.

The CloudFront docs don't mention SSE support and they definitely don't support WebSockets today.

That said, with CloudFront Custom Origins you can do "Transfer-Encoding: chunked" [1] which will cause CDN server to deliver content to the client as it is sent by your application. That seems like it would be compatible with SSE. Unfortunately it also has a 30 second idle timeout [2] which may be a showstopper depending on how frequently your app sends event.

[1] http://docs.aws.amazon.com/AmazonCloudFront/latest/Developer... [2] http://docs.aws.amazon.com/AmazonCloudFront/latest/Developer...


Legal | privacy