Skip to content

Dispatch is an API Gateway written in Java using Jetty + Virtual Theads which aims to be simple, performant, and extensible.

Notifications You must be signed in to change notification settings

owainlewis/dispatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dispatch

Dispatch is an API Gateway written in Java which aims to be simple, lightweight, and extensible.

Dispatch uses Jetty and Virtual Threads.

Starting the server

 mvn clean compile exec:java

Deploying

You can build a single JAR executable with

mvn package

Concepts

Routes

Backends

Policies

Config

Dispatch uses a YAML-based configuration format based on routes, backends, and policies.

routes:
    method: 'GET'
    path: '/v1/hello/{name}'
    backend:
      - type: static
        responseCode: 200
        responseBody: 'Hello, World!'
    policies:
      - name: rate-limit

Benchmarking

echo "GET http://localhost:8080/" | vegeta attack -duration=30s -rate=1000 -output=results.bin && cat results.bin | vegeta plot --title="Load Test Results" > load-test

About

Dispatch is an API Gateway written in Java using Jetty + Virtual Theads which aims to be simple, performant, and extensible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published