Here we explain the architecture of the Loyi system and the flow of data between a client application server and our API service.The flow begins with the client server, labeled "Your Server", making a request to the API server. This request first passes through a load balancer, which distributes traffic to maintain optimal performance. After load balancing, the request undergoes authentication to verify the requester's identity. The request needs an API key in the x-api-key
header and a whitelisted domain in the origin
header.Once authenticated as valid, the request is routed to the appropriate service within the API server. The service components process the specific business logic required for the request.The services interact with a database server when data needs to be retrieved or stored. After processing, the API server sends a response back to the client, completing the request-response cycle.Data Flow#
Here is a data flow diagram showcasing how to use the Loyi API to allow a User to participate in a Quiz Quest. Modified at 2025-03-27 16:04:23