This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-30
Channels
- # ai (3)
- # beginners (86)
- # boot (3)
- # chestnut (1)
- # cider (29)
- # clara (2)
- # cljs-dev (18)
- # cljsrn (1)
- # clojure (104)
- # clojure-greece (3)
- # clojure-losangeles (1)
- # clojure-spec (2)
- # clojure-uk (1)
- # clojurescript (5)
- # core-async (5)
- # css (3)
- # emacs (3)
- # figwheel (7)
- # fulcro (60)
- # lein-figwheel (3)
- # luminus (4)
- # off-topic (7)
- # portkey (14)
- # reagent (12)
- # rum (1)
- # shadow-cljs (9)
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>“)})
so if working on a ring app, and would like to show someone a new feature, one would mount a handler