cask
Cask: a Scala HTTP micro-framework (by lihaoyi)
zio-http
A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers (by zio)
Our great sponsors
cask | zio-http | |
---|---|---|
12 | 8 | |
496 | 733 | |
1.6% | 1.1% | |
7.3 | 9.4 | |
3 months ago | 6 days ago | |
Scala | Scala | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cask
Posts with mentions or reviews of cask.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-24.
-
Java21/Virtual threads, simplest the most boring scala http server stack ?
I want to just block as if there's no tomorrow, no effects / hardcore FP (maybe only something like https://github.com/softwaremill/ox), what would you use? E.g. for http server / db / json ?https://github.com/com-lihaoyi/cask ?
-
Scala opensource projects
There's the Li Haoyi's ecosystem of tools and libraries that's fun to hack on, has a low entry-bar (with a design philosophy of using the least complex abstractions for the job), and has few libs like requests and cask that may appeal to those liking some python minimalism. That's not the fastest way to learn hardcore FP, that's not the worst either.
- http4s as a replacement for akka-http?
-
Replacing Play+Akka with another tech-stack in Scala
Wonder if anyone uses: https://github.com/com-lihaoyi/cask
-
Starting with scala
Is play-framework a strong requirement? If not, you might have an easier time building a simple API and serializing JSON with the lihaoyi ecosystem, namely cask as the microframework and uPickle/uJson.
-
Scala became Typelevel/Zio only ecosystem?
For people who want to get their feet wet with Scala, I highly recommend Cask and the rest of what some people affectionately call βthe Singapore stack,β in honor of Li Haoyi, its developer. He emphasizes tasteful use of Scala features with an emphasis on API ergonomics. All of his work is a joy to use.
-
Mill, Cask, and SBT
The documentation points to a pretty outdated example. Can you try with the latest 0.8.3 release?
-
Scala Http Framework
If you want something really easy and simple, have a look at cask: https://com-lihaoyi.github.io/cask/
-
A library like Express.js?
Best I can do is Cask: https://com-lihaoyi.github.io/cask/ π
- Experienced dev new to Scala looking for a quick answer to get me on the right track - Advice on *standard* Scala framework stack to quickly set up a web-app backend?
zio-http
Posts with mentions or reviews of zio-http.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-07.
-
Creating a CLI app with scala and Graal VM: should I switch to Rust?
For JNI, make sure you have `-H:+JNI` in your native image options. Be aware that Netty is a bit of a monster to include in a native image application (I just recently added it a Netty dependency and it completely broke my project and took a good day to figure out). Mine was through zio-http and I was able to piece together some working options from github issues: https://github.com/zio/zio-http/issues/20.
- What is scala's modern Web API framework?
-
Show HN: Open-source non-blocking NIO Java HTTP Server
What's the hardware being used for your test? I get 55k RPS with a basic 200 responder with zio-http[0] (which uses Netty) on my i5-6600K, and over 20k RPS for an e2e POST endpoint that does write batching to postgres (committing the insert before responding with the db generated id). Postgres, client (vegeta[1]), and the app all on the same machine. I think that was with keep-alive, I think like 256 clients for the basic responder and 1024 for the one that writes to the db. There's a recently merged PR for zio-http that does 1M req/s on whatever machine they test on[2] so Netty can absolutely scale to high RPS.
[0] https://github.com/zio/zio-http
-
Akka Fork FUD
Yep! https://github.com/zio/zio-http
-
zio-http, any experiences to share
I was looking at HTTP frameworks for Scala. I found zio-http, https://zio.github.io/zio-http/. Has anyone tried this framework?
- How is scala as microservices-based backend for web service?
-
A library like Express.js?
https://github.com/dream11/zio-http very simple and super performant, dead easy to abstract over routes to make a router
-
ZIO vs. Cats Effect for api
I'm starting a new project, essentially a standard web app (SPA + rest api). I'd like to stay as functional as possible. I'm debating between http4s + cats effect, http4s + zio, and zio-http (https://github.com/dream11/zio-http). I'm having a hard time figuring out which stack has the strongest (safest?) future especially with scala 3 out. Cats Effect 3 looks amazing, but so does the zio ecosystem. Thanks for any opinions/advice!
What are some alternatives?
When comparing cask and zio-http you can also consider the following projects:
Http4s - A minimal, idiomatic Scala interface for HTTP
vertx-lang-scala - Vert.x for Scala
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
scala-play-skills-tracker
Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM
scala-cli - Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code (and more!)
Play - The Community Maintained High Velocity Web Framework For Java and Scala.
zio-protoquill - Quill for Scala 3
advanced-http4s - :rainbow: Code samples of advanced features of Http4s in combination with some features of Fs2 not often seen.
ocpp - Open Charge Point Protocol