Eclipse Vert.x 4 beta 3 released!
We are extremely pleased to announce the third 4.0 beta release of Eclipse Vert.x.
Vert.x 4 is the evolution of the Vert.x 3.x series that will bring key features to Vert.x.
HTTP client request creation
Until Beta3, HTTP client has created lazy HTTP requests, since then creating a request has become an asynchronous operation guaranteeing that a slot for performing the request is granted:
Another (hidden) motivation to switch to this model is avoiding data races when the HTTP client is used outside the event-loop using futures.
Previously, you could write code like:
Now, you can write instead:
HttpServerResponse send method
In the previous beta, HTTP client request got a new simplified send
method to send
a body or a stream. We did the same for the HTTP server response API:
HTTP tunnel improvements
Creating an HTTP tunnel has now become more natural:
The new connect
method tells the client that when a 201
response is received
from the server then the connection should be switched to not interpret HTTP
data anymore.
On the server, the API has become asynchronous and renamed to toNetSocket()
:
WebSocket upgrade improvements
The server WebSocket manual upgrade operation has also become asynchronous and renamed
to toWebSocket()
Row to JSON conversion
SQL client can now easily transform a Row
into a JSON object, this can be convienient
for applications directly transferring JSON results to the client:
OAuth2/OIDC PKCE
OAuth2Handler
can now handle PKCE, which means another layer of security to your application.
Redis RESP3
The redis client can now speak RESP3
with redis servers. This means it can handle all the new types and APIs available on redis from all versions (RESP2, redis < 6) and (RESP3, redis >= 6).
Finally
This is the Beta3 relase of Vert.x 4, you can of course expect another beta as we get feedback from the community and fix issues that we failed to catch before.
You can also read the milestone announces to know more about the overral changes:
- https://vertx.io/blog/eclipse-vert-x-4-beta-1-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-5-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-5-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-4-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-3-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-2-released
- https://vertx.io/blog/eclipse-vert-x-4-milestone-1-released
The deprecations and breaking changes can be found on the wiki.
For this release, there are no Docker images.
The release artifacts have been deployed to Maven Central and you can get the distribution on Maven Central.
You can bootstrap a Vert.x 4.0.0.Beta3 project using https://start.vertx.io.
The documentation has been deployed on this preview web-site https://vertx-web-site.github.io/docs/
That’s it! Happy coding and see you soon on our user or dev channels.