Created
May 10, 2020 19:38
-
-
Save jchapuis/5cc6180204a1da12e7d4355689e54d26 to your computer and use it in GitHub Desktop.
Markdium-Orchestrating startup and shutdown in Scala
This file contains hidden or 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
val akkaApplicationService: Service = builder | |
.startSystemDependent(SomeEtcdService()) | |
.thenStartHttp( | |
HttpServiceDefinition( | |
new AkkaControllers().routes, | |
serverConfig.host, | |
serverConfig.port, | |
serverConfig.hardDeadline, | |
serverConfig.unbindingDelay | |
) | |
) | |
.thenStartClusterDependent(SomeEntityService()) | |
.thenStartClusterDependent(SomeKafkaConsumerService()) | |
.complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment