Two service demo pipeline where a Node.js API ingests events and forwards them to a Python service for enrichment.
- Client sends event payload to
POST /api/eventson the Node service. - Node service forwards payload to Python
POST /enrich. - Python service returns enriched metadata response.
- Node.js + Express
- Python + Flask
- Axios
Terminal 1:
cd server
npm install
node index.jsTerminal 2:
cd python-api
python3 -m venv .venv
source .venv/bin/activate
pip install flask
python app.pySend a test event:
curl -X POST http://127.0.0.1:3000/api/events \
-H "Content-Type: application/json" \
-d '{"event":"checkout","user_id":"123"}'