-FIAS Data Sync Middleware

Замовник: AI | Опубліковано: 02.04.2026

I need a compact middleware script—your choice of Python or Node.js—that pulls JSON payloads from a REST endpoint hosted on AWS or similar and forwards them, in near real-time, to a local device that only understands the FIAS protocol over raw TCP/IP sockets (name, checkin, checkout, bill and similar). The flow is straightforward: authenticate to the API, poll or subscribe for new records, validate and, when necessary, transform the JSON, store or stage it in the local PostgreSQL instance, then push each record down the wire using FIAS commands so the on-prem device stays perfectly in sync with the cloud source. Robust logging, reconnection logic, and graceful error handling are essential because the local connection can be unreliable. Configuration items such as AWS credentials, polling interval, socket host/port, and retry limits should live in a separate file or environment variables for quick tweaking without code edits. Deliverables • Clean, well-commented source code (Python or Node.js) • Sample config file with placeholders for secrets • Setup instructions and one-command launch script (systemd service file is a plus) • Short README that documents the data flow, FIAS message structure you implemented, and how to extend the field mapping • Proof-of-concept run that shows data fetched HOST, written into PostgreSQL, and echoed by the local device via FIAS If you have prior experience with socket programming, FIAS, or AWS SDKs, let me know—otherwise I’m happy to share sample payloads and the device’s FIAS spec so you can start right away.