kumarshantanu / ring-sse-middleware

Ring middleware to stream Server-sent Events
Eclipse Public License 1.0
19 stars 2 forks source link

Basic Example / Project Template #2

Open rawoke083 opened 2 years ago

rawoke083 commented 2 years ago

Hi I've been bumping my head for the last two weeks in Clojure land trying to get a bare-minimum-working of a project that has:

1) SSE 2) Async 3) Routing

It seems everywhere i turn are these libraries that has at best short code-snippets ? I'm am new to Clojure but it's really difficult if all the connecting pieces are missing.

The full examples that are out there or years or decades old ! Any chance for a lein template or project skeleton ?

kumarshantanu commented 2 years ago

@rawoke083 Thanks for filing the issue - it makes a lot of sense. I will try to put together an app that uses this library with other useful things.

I'm afraid async is bit of a tangent in this regard, especially with Java adopting Loom and indications of explicit async falling out of favour in the JUXT Clojure Radar, 2021 (see Infrastructure section). However, if you use HTTP-Kit (based on Java-NIO) or Aleph (based on Netty), you get internal async implementation out of the box.