The API service is the primary entry point for client applications interacting with FlexPrice. It handles all HTTP requests, processes them through appropriate business logic, and returns responses. The API service:
Exposes RESTful endpoints for various FlexPrice functionalities
Handles authentication and authorization
Writes data to PostgreSQL for persistent storage
Publishes events to Kafka for asynchronous processing
Initiates Temporal workflows for complex or scheduled processes
FlexPrice is architected as a set of composable building blocks, each handling specific aspects of usage-based billing and subscription management. These blocks can be used independently or together, providing flexibility in how the platform is deployed and utilized.