-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
async-service
example to examples/
.
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Async::Service | ||
|
||
Async::Service provides a generic service layer for managing the lifecycle of services. | ||
|
||
Falcon provides several services which are managed by the service layer, including: | ||
|
||
- `Falcon::Service::Server`: An HTTP server. | ||
- `Falcon::Service::Supervisor`: A process supervisor (memory usage, etc). | ||
|
||
The service layer can support multiple different services, and can be used to manage the lifecycle of any service, or group of services. | ||
|
||
This simple example shows how to use `async-service` to start a web server. | ||
|
||
``` shell | ||
$ bundle exec async-service ./hello.rb | ||
``` | ||
|
||
This will start a web server on port 9292 which responds with "Hello World!" to all requests. |