npearce / CaC-Github_Webhook_Server

Automated Network Configuration-as-Code (NCaC) deployments using Github webhook to F5 BIG-IP.
https://redtalks.live/cac/
MIT License
14 stars 5 forks source link

Implement Declaration Queuing #28

Closed npearce closed 6 years ago

npearce commented 6 years ago

If operator commits several complex service definitions together we can overwhelm AS3. Implement queuing to spoon feed the service definitions to AS3.

npearce commented 6 years ago

Using node module queue to deploy/delete declarations to /declare asynchronously.

npearce commented 6 years ago

Looking at: promise-queue - https://www.npmjs.com/package/promise-queue

npearce commented 6 years ago

Move the applyServiceDefinition() & deleteServiceDefinition() functions into promise-queue https://www.npmjs.com/package/promise-queue with maxConcurrency: 1