All project notes

Contribution

Reza Rosli on Clone Army

Started from the CandyMuncher feeder and split bulk generation into queued jobs. Separate Lambda workers could generate test leads without making the initial bulk request do all the work.

Reza brought over the CandyMuncher feeder in October 2019. A week later the bulk handler divided the requested lead count into jobs and sent them to SQS. The worker handled generation and sent leads to the ingestion queue. This kept the initial request focused on dispatch and gave the service a separate unit of work for scaling generation.

From the diff

services/insertLeadsBulk.js at 2f62028

+        workers[i] = numLeadsPerWorker;
+        workers[numWorkers - 1] += balance;

The dispatch code gives each worker a share of the requested total and assigns the remainder to the last worker. The queue separates this bookkeeping from generating and sending the leads.

Selected commit log

Archived repository Dodol/clone-army.

  • 2019-10-03 · 1c98041 · copy files from candymuncher into this project
  • 2019-10-10 · 2f62028 · Use decoupled workers so that the lambdas can be better scaled