在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:spotify/apollo开源软件地址:https://github.com/spotify/apollo开源编程语言:Java 98.6%开源软件介绍:ApolloStatus: Archived
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 APIThe 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 public static void init(Environment environment) {
environment.routingEngine()
.registerAutoRoute(Route.sync("GET", "/", requestContext -> "hello world"));
}
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 CoreThe 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 TestIn 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. It has helpers to set up a service for testing, and to mock outgoing request responses. LinksIntroduction Website DiagramsCode of conductThis project adheres to the Open Code of Conduct. By participating, you are expected to honor this code. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论