Popularity
6.8
Stable
Activity
8.3
-
1,630
131
224

Code Quality Rank: L4
Programming language: Java
License: Apache License 2.0
Tags: Microservice    
Latest version: v1.17.2

Apollo alternatives and similar libraries

Based on the "Microservice" category.
Alternatively, view Apollo alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Apollo or a related project?

Add another 'Microservice' Library

README

Apollo

Circle Status Codecov Maven Central [License](LICENSE.txt)

Status: Archived

⚠️ Apollo is heavily used within Spotify, however, most of its development has recently been done internally leveraging Apollo's module system. Because of this, and the fact that Apollo has very little (if any) use outside Spotify we want to signal this current state to the community by putting the project in archive mode. This means this project will no longer have new features, bug fixes or accept PRs for new features. Apollo development will continue internally in Spotify.

Apollo is a set of Java libraries that we use at Spotify when writing microservices. Apollo includes modules such as an HTTP server and a URI routing system, making it trivial to implement restful API services.

Apollo has been used in production at Spotify for a long time. As a part of the work to release version 1.0.0 we moved the development of Apollo into the open.

There are two main libraries in Apollo:

  • [apollo-api](apollo-api)
  • [apollo-core](apollo-core)

Apollo API

The [apollo-api](apollo-api) library is the Apollo library you are most likely to interact with. It gives you the tools you need to define your service routes and your request/reply handlers.

Here, for example, we define that our service will respond to a GET request on the path / with the string "hello world":

public static void init(Environment environment) {
  environment.routingEngine()
      .registerAutoRoute(Route.sync("GET", "/", requestContext -> "hello world"));
}

Note that, for an Apollo-based service, you can see the routes defined for a service by querying [/_meta/0/endpoints](apollo-api-impl/src/main/java/com/spotify/apollo/meta/model).

The apollo-api library provides several ways to help you define your request/reply handlers. You can specify how responses should be serialized (such as JSON). Read more about this library in the [Apollo API Readme](apollo-api).

Apollo Core

The [apollo-core](apollo-core) library manages the lifecycle (loading, starting, and stopping) of your service. You do not usually need to interact directly with apollo-core; think of it merely as "plumbing". For more information about this library, see the [Apollo Core Readme](apollo-core).

Apollo Test

In addition to the two main Apollo libraries listed above, to help you write tests for your service we have an additional library called [apollo-test](apollo-test). It has helpers to set up a service for testing, and to mock outgoing request responses.

Links

Introduction Website JavaDocs Maven site

Diagrams

[Apollo set-up](website/source/set-up.svg)

[Apollo in runtime](website/source/runtime.svg)

Code of conduct

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.


*Note that all licence references and agreements mentioned in the Apollo README section above are relevant to that project's source code only.