Fork me on GitHub
#portkey
<
2017-09-30
>
qqq10:09:21

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 ?

viesti17:09:38

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)

viesti12:09:36

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>“)})

viesti13:09:34

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

viesti13:09:10

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

viesti16:09:29

:thinking_face:

viesti16:09:43

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

viesti16:09:02

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

cgrand19:09:51

Or you continuously work in your dev stage on aws.

viesti19:09:16

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

viesti19:09:36

stages are easy to create and are even versioned

viesti19:09:49

or should I say archived

viesti19:09:22

I’d see lot of opportunity for feature branch work

viesti19:09:58

granted data(base) might still be shared