Http4s
Vert.x
Our great sponsors
Http4s | Vert.x | |
---|---|---|
14 | 25 | |
2,260 | 12,913 | |
1.3% | 0.7% | |
10.0 | 9.3 | |
1 day ago | about 11 hours ago | |
Scala | Java | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
Http4s
-
Why do all frameworks use OOP? (php)
There are functional frameworks: https://http4s.org/
-
Can we all please star our top 15 used Scala libraries ?
If you look at the example it is listed as an import but there is no explicit reference to it. And if you were just doing basic synchronous responses then that would be the only time you would see it.
-
Scala Http Framework
If you want something more powerful, pure-functional and you need to do complex, concurrency-heavy operations, have a look at http4s: https://http4s.org/
-
Typelevel: On Recent Events
I don't think this is toxic but still, it doesn't sit well with me: https://github.com/http4s/http4s/issues/4718
-
Akka became the de-facto solution for Scala web development?
http4s
-
Any HTTPS web proxy library in Scala?
Here is a possible sketch with the functional http4s library. In http4s, both Http clients and servers are modelled as functions from Http requests to an Http response generated from an IO action. This would be like a function Request => IO[Response], which in http4s is called an HttpApp.
-
Building a REST API in Scala 3 using Iron and Cats
Http4s: https://http4s.org/
-
A library like Express.js?
Have you checked http4s? I'm using it as a lightweight HTTP server with routing, etc. It might be not your cup of tea, if you don't use pure functional programming, etc, though.
- Why Typelevel hates ZIO?
Vert.x
-
Ask HN: What is a modern Java environment?
[3] - https://vertx.io/
-
Trying to decide on Scala or Kotlin
Another option that I would strongly consider is Vert.x. It allows you to mix/match languages and could be a simple and risk-free way to introduce FP concepts into an application.
-
How does the Java community feel about Kotlin?
I'm not sure about WebFlux, _specifically_, but yes it's different. I use VertX which has its own coroutine compatibility module, but essentially with reactive, you call database and get back some kind of "Future" object which then you have to use a callback with:
-
[2022] Vert.x vs Spring
That being said, between the two you mentioned, spring is probably the more popular framework because of the magic annotation processing it provides if you're into that. Otherwise vertx seems like a good framework if you want something light, not sure which large projects are using it out there though short of looking at their site.
-
Switching to Java
Something like Vert.x would be much close to node.js (it's inspired by it!) and it's pretty easy to use. I would also at least read about the following frameworks before deciding on which one to try a bit more:
-
Native-image with Quarkus
Because the developers of Quarkus also worked on Vert.x, the former also offers a plugin that integrates the latter. Vert.x is full reactive and provides the concept of routes. With Quarkus, you can annotate methods to mark them as routes. One can migrate the above code to routes:
-
Async I/O for Dummies (2018)
Backend newb, here. I have a dumb question - can someone give me a summary, or blog post to a summary, of the pros /cons of async versus threads?
One thing I have been using as a way of understanding hi-perf backends is analyzing why the vert.x framework [1] (and its underlying server, netty) does so well on benchmarks [2], but as newb, I do not think I would get a lot form that exercise without a little hand holding.
[2] Ad of today, #28 on tech empower benchmarks - https://www.techempower.com/benchmarks/
-
Java Equivalent of Express.js for REST
Came here to say this. Vert.x was inspired by Node+Express. It was even originally named NodeX.
Vert.x
-
GraalVM + Typescript + Quarkus !??
Check out ES4X. It's JS and TS bindings for GraalJS for Vert.x. Vert.x is the basis for Quarkus, so this is definitely possible.
What are some alternatives?
Akka HTTP - The Streaming-first HTTP server/module of Akka
Akka - Build highly concurrent, distributed, and resilient message-driven applications on the JVM
sttp - The Scala HTTP client you always wanted!
Finch.io - Scala combinator library for building Finagle HTTP services
Lagom - Reactive Microservices for the JVM
Micronaut - Micronaut Application Framework
javalin - A simple and modern Java and Kotlin web framework
ZIO - ZIO — A type-safe, composable library for async and concurrent programming in Scala
RxJava - RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
Jooby - The modular web framework for Java and Kotlin
Zuul - Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.
Ehcache - Ehcache 3.x line