Scala structured-concurrency Projects
-
Take the following requirement:
"A user has made an API call. I want you to in parallel race two concurrent tasks: check if the data is in (1) cache and (2) database. Whichever returns fastest return to the user. Otherwise kill the other task and make sure the connection resources for both are cleaned up".
I can easily do this with an effect systems like ZIO and have it work flawlessly. That's the benefit of effect systems.
But now with JVM Virtual Threads there are frameworks like Ox: https://github.com/softwaremill/ox which allow you to achieve the same thing without effects.
-
Sevalla
Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
Scala structured-concurrency discussion
Scala structured-concurrency related posts
Index
# | Project | Stars |
---|---|---|
1 | ox | 455 |