This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-26
Channels
- # aatree (6)
- # admin-announcements (2)
- # aws (1)
- # beginners (46)
- # boot (341)
- # braid-chat (3)
- # cider (20)
- # clara (1)
- # cljs-dev (3)
- # cljsjs (7)
- # cljsrn (73)
- # clojure (63)
- # clojure-art (4)
- # clojure-dev (3)
- # clojure-russia (83)
- # clojurescript (77)
- # core-async (12)
- # core-matrix (2)
- # cursive (9)
- # data-science (1)
- # datomic (14)
- # dirac (3)
- # emacs (9)
- # hoplon (3)
- # immutant (8)
- # ldnclj (80)
- # luminus (13)
- # mount (7)
- # off-topic (4)
- # om (288)
- # onyx (20)
- # overtone (5)
- # pedestal (10)
- # perun (3)
- # proton (103)
- # quil (1)
- # re-frame (3)
- # reagent (13)
- # ring-swagger (7)
- # yada (43)
I have been experimenting with this and I have found my :servlet-context is going missing from the request.
hi @imre, i know only it is only targeted on aleph, that's why i would call it an experiment... it works for the most part
aleph is also built against that, so it just happens to be easier to coordinate the two libraries
you can use manifold's functions to coerce your streams into compatible stuff, like channels
it works out of the box with aleph but i have had to jump through a few hoops to fit it to the lein-ring plugin and tomcat
unfortunately i'm stuck with tomcat for the moment and i need to use some elements from the tomcat servlet-context
it's a bit ugly tbh, but i was keen to play with yada.. not sure at this point if the amount of hacking needed is too great
yes, very true. i am quite honestly trying to get some hands-on experience with yada despite the fact that stack i am required to use defeats much of the advantage
although it is still very nice to define the resources once and get the swagger almost for free
i'm sure as it matures compatibility issues would be ironed out, but I doubt that's priority
but because everything is data in yada I believe its relatively simple to introspect the ring handlers generated from your resource
@jethroksy: thanks for that, i've figured it out now
The dependency on aleph isn't ideological or anything, it's just that I have to manage my time carefully and it's quicker right now to target one async server.
Also, yada is no longer in its early stages, it's a proper beta now, nothing substantial will change between now and the official 1.1 release in a few weeks time.
After 1.1 I will gather feedback from users about priorities and definitely look into other web server options - most Java webservers have Servlet async support, and pedestal has made good use of that. I also want to support Immutant. Doing all this will slow down yada development but I feel it will be better to support more deployment options in the future.
btw. the idiomatic way to serve resources now is (yada dir).
I'm considering renaming the 'request-context' ctx
to environment env
, Om Next does this.
Wonder if anyone has any opinion on this - it won't change any functionality
@edwardk: I'd be very interested to know how your experiment goes