Skip to content

deephacks/vertxrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vertxrs

Build Status

The combination of JAX-RS and Vert.x comes with a few advantages over conventional Servlet containers.

  • Everybody knows JAX-RS.
  • Fast and asynchronous by nature.
  • Very few dependencies and only a few megabytes in size.
  • Unnoticeable application startup time.
  • Static file serving support for web resources.
  • SockJs and Websocket support.
  • Java 8 and reactive programming friendly.
  • Simple API for writing extremely fast zero-copy TCP clients and servers.
  • Clustered, language neutral event bus for IPC and server communication.

Example

Maven dependency.

<dependency>
  <groupId>org.deephacks.vertxrs</groupId>
  <artifactId>vertxrs</artifactId>
  <version>${version}</version>
</dependency>

Register a JAX-RS resource and start the server.

@Path("/rest")
public class Resource {
  @GET @Path("/foo")  public String foo() { return "bar"; }
}

VertxRsServer.newBuilder().withResource(new Resource()).build().start();

About

JAX-RS with Vert.x

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages