Ratpack is a toolkit for developing HTTP applications using a lightweight, asynchronous programming model. It uses Netty for network communication and provides a collection of APIs for routing requests, composing handlers and managing application execution. Rather than imposing a complete application architecture, Ratpack allows developers to select the components needed for a particular service.
Request processing is organised around handlers that operate on a request context. Handlers can be combined into chains, allowing routing, authentication, content generation and other operations to be separated into reusable components. Ratpack uses promises to coordinate asynchronous work, providing a way to process database queries, network operations and other tasks without blocking the event loop. The toolkit also includes testing facilities and integrations for dependency injection, session handling and template rendering. It can be used for REST APIs, backend services and web applications that require non-blocking request processing.
This is free and open source software.
Key Features
- Non-blocking HTTP server built on the Netty networking engine.
- Composable request handlers and handler chains.
- Path-based routing and extraction of route parameters.
- Asynchronous execution using Promise and Operation abstractions.
- Execution management for coordinating asynchronous application tasks.
- Request and response APIs for headers, cookies, bodies and HTTP status codes.
- JSON request and response handling.
- Static file serving and resource management.
- Session management with configurable session stores.
- Optional Google Guice dependency injection.
- Groovy DSL for concise application configuration and routing.
- Template rendering through supported view engines.
- Integration with Spring application components.
- Application lifecycle management and configuration support.
- Embedded testing fixtures for HTTP handlers and application services.
- Execution testing utilities for asynchronous code.
Website: github.com/ratpack/ratpack
Support:
Developer: Ratpack contributors
License: Apache License 2.0
Ratpack is written in Java and Groovy. Learn Java with our recommended free books and free tutorials. Learn Groovy with our recommended free books and free tutorials.
Related Software
| Java Web Microframeworks | |
|---|---|
| Spring Boot | Create Spring-powered, production-grade applications and services |
| Javalin | Simple web framework for Java and Kotlin |
| Ktor | Asynchronous framework for creating microservices, web applications and more |
| Quarkus | Kubernetes native Java stack tailored for OpenJDK HotSpot and GraalVM |
| Dropwizard | Java framework for developing RESTful web services |
| Spark | Simple expressive web framework for Java |
| Ratpack | Simple, capable, toolkit for creating high performance web applications |
| Armeria | Build any type of microservice leveraging your favorite technologies |
| Light-4J | High-performance framework designed for cloud-native services |
| Jooby | Modern, performant and easy to use web framework for Java and Kotlin |
| Helidon | Set of Java libraries for writing microservices |
| Pippo | Aims to be easy to use and hack |
| Takes | Compact web framework built around immutable HTTP messages |
| tinystruct | Modular application framework with a small, flexible core |
| Jodd | Set of micro-frameworks and developer-friendly tools and utilities |
| Rapidoid | HTTP server and modern Java web framework / application container |
Read our verdict in the software roundup.
| Groovy Web Frameworks | |
|---|---|
| Grails | Popular web application framework for the JVM built on top of Spring Boot |
| Micronaut | Support for Java, Kotlin and the Groovy language |
| Ratpack | Simple, capable, toolkit for creating high performance web applications |
| Gaelyk | Lightweight Groovy toolkit for Google App Engine Java |
| Moqui | Enterprise application development platform |
| Hot | Polyglot reactive web framework for the JVM |
| Grace | Build enterprise-grade Spring Boot applications with Groovy |
| Glide | Create apps that run on Google App Engine |
| gServ | Create and deploy REST based services using Groovy |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.