Main
app.Main
Main entry point for the application.
This object configures and starts all required resources and services for the application, including:
- Actor system setup for Akka-based concurrency.
- HTTP client setup for external API interactions.
- Distributed cache management with separate time-to-live (TTL) settings for local and distributed caches.
- Initialisation of core services (
MechanismService
,ReactionService
,ReaktoroService
). - HTTP server setup for serving API endpoints.
Proper lifecycle management is ensured using cats.effect.Resource
, which guarantees that all resources are initialised and cleaned up correctly. This entry point waits for user input to terminate the application, ensuring a controlled shutdown.
Attributes
- Source
- Main.scala
- Graph
-
- Supertypes
- Self type
-
Main.type
Members list
In this article