| Recommend this page to a friend! |
| Packages of Christos Drogidis | Ascoos OS | examples/case-studies/api/api_batch_orchestrator/api_batch_orchestrator.md | Download |
|
|||||||||||||||||||||
API Batch OrchestratorThis case study demonstrates how Ascoos OS can be used to orchestrate multiple API requests with caching and event-driven logic. The system executes batch GET requests, caches responses, emits success/failure events, and logs activity. PurposeThis example uses the following Ascoos OS classes: - TAPIHandler: Executes API requests with support for caching and events. - TEventHandler: Emits and logs events for success and failure. - TCacheHandler: Stores and retrieves cached responses. - selectCache(): Chooses the appropriate cache type (e.g. file, memcached). StructureThe case study is implemented in a single PHP file:
- Prerequisites
Getting Started
Example Usage
Expected OutputThe script returns a structured array of API responses, logs success or failure events, and stores results in cache. Example output:
ResourcesContributingWant to contribute to this case study? Fork the repository, modify or extend LicenseThis case study is licensed under the Ascoos General License (AGL). See license. |