portkey 2017-09-30

back on the real time question -- can something like http://slither.io be built using lambda/portkey is the rea ltime was handled by webrtc ?

Not sure about realtime with Lambda for a web service, although Lambda can be used to read data from a Kinesis stream (which I haven’t done) and in that scenario invocations might happen quite frequently (I think)

from

portkey.core> (defn handler [request]
                (prn request)
                {:status 200
                 :headers {:content-type “text/html”}
                 :body (str “<html><body>Hello, this is ”
                            (-> request :portkey/lambda-context (.getFunctionName))
                            ” and I have ”
                            (-> request :portkey/lambda-context (.getRemainingTimeInMillis))
                            “ms to execute”
                            “</body></html>“)})

🦜 1

hmm so pk/mount-ring! is still a bit lacking, should be a macro like pk/mount!

but thought that I’ll put it to master still, to get more eyes/hands on it

so if working on a ring app, and would like to show someone a new feature, one would mount a handler

would need database/configuration separation between the local/ec2 app and one running in lambda, but for use as a fast user testing tool...

Or you continuously work in your dev stage on aws.

yep, should really try all the way serverless route, haven’t been there yet

stages are easy to create and are even versioned

or should I say archived

I’d see lot of opportunity for feature branch work

granted data(base) might still be shared