Page:
improved-user-driven-background-tasks
Pages
--How-OrderLineProduct-and-OrderLine-works-when-an-order-is-created.
--Setting-Up-eStack-using-Linux-Ubuntu-18.04
--Step-to-Push-Code-to-Production-and-Install-Packages
AMAZON-MULTI-CHANNEL-FULFILLMENT
Amazon-SP-API-Steps-involved-in-fetching-reports-and-persisting-orders-in-the-system-using-Job-Queues
Amazon-SP-API-integration-and-Reports-fetchings-and-persisting
Amazon-SPI-API-(Notes,-Links,-How-To)
Bulk-SKU-Creation-Upload-Bug-(UTF-8-csv-format)-and-Steps-to-fix-that-through-SQL-Commands
Code-Flow-&-Logic-Understanding
Composer-Noted-&-Troubleshooting
DHL-eCommerce-Asia-API-Integration
Database-Backup
Delete-eStack-Instance
GitLab-Updates
Inventory-Location-Table
Misc-Notes-Regarding-New-or-Updating-SSH-Keys
Order/Order-and-Shipment-LifeCycle
Order-Statuses-and-Shipping-Types-and-Statuses
Postage-Classes,-Shipping-Classes,-Your-Packaging,-and-Shipping-Rules
Query-for-fetching-Order-Tax-Details
Roadmap-to-SaaS-1.0-August-1,-2021-Meeting-of-the-Minds
Rotate-Login-with-Amazon-SP-API-credentials-(Client-Secret)
SSL-Certificate-&-Installation
Setting-Up-eStack-using-Windows-10
ShipStation-Integration
docs-infinite-inventory
double-entry-warehouse-management
eStack-Backend-Instance-&-Customer-Management-Console
eStack-Dashboard
improved-user-driven-background-tasks
product-sku-model
Clone
1
improved-user-driven-background-tasks
rob edited this page 2026-06-29 09:04:53 +00:00
Table of Contents
The current code for background tasks isn't fantastic, and is a good candidate to be extracted into a standalone service.
Requirements
- Central HTTP API to initiate various background tasks
- Tasks are ultimately just CLI scripts.
- Tasks can be run on remote machines to scale out.
- Tasks can push progress updates and logs back to the server.
Implementation Ideas/Notions
- Jobs identified by UUIDs, generated by API consumer.
- Need to think about priority-queue behavior that round-robins through client tenants, to prevent one tenant from DOSing the service.
- How to push updates back to server?
- Just write to stdout and have server read output?
- Run jobs in background and have them PUT/POST updates back to service
- PSR-3 logger, or Stream/Writer for Monolog? Async?
- Client apps can poll server for updates.