Back to Carousel

SalesCandy Git archive

Carousel

Receives queued leads from CandyMuncher and prepares them for routing.

README

This repository processes queued leads received from CandyMuncher via SQS. It prepares this data for subsequent routing logic.

The system consumes lead events, checks the current state in Redis, and ensures leads are correctly prepared for the next stage of processing.

Selected files and folders

  • README.md
  • handlers
  • package.json
  • serverless.yml

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Distinguish assigned leads from queue

Previously, the system might process leads that were already assigned. The change ensures that when a lead is missing from Carousel’s Redis state, the mobile app can correctly identify it as already assigned, preventing redundant processing.

6a3537117b1e

Improve Redis connection handling

The connection logic to Redis was enhanced to better manage scenarios involving disconnections. This improves the robustness of the lead processing pipeline when network issues occur.

d7577d43c96d

Streamline matcher trigger execution

The trigger mechanism for the matcher was updated to ensure it only executes when messages arrive through the SQS queue. This prevents unintended or premature execution paths.

abad6558b144

Selected commits

  1. Update dependencies (ioredis)

    Reza Rosli ·

    7d8c364123542cadd3949155da100a20a82e97c9

  2. Archived revision

    Reza Rosli ·

    6a3537117b1e5dea5885450887656317c0ba1fb5

  3. Update dependency aws-sdk to v2.969.0

    Renovate Bot ·

    c9f13031b0df8832ea5619e2b5212a63a14dfbed

  4. Update dependency serverless-pseudo-parameters to v2.6.0

    Renovate Bot ·

    970cfee134c2ce784a668c95e9d430c2d165f3ab

  5. Update dependency ioredis to ^4.26.0

    Renovate Bot ·

    10462ba455fbeb8419a46d1212d84eb4feb2a090

  6. Enhance connection logic to Redis to manage disconnections

    Reza Rosli ·

    d7577d43c96dc3d90e34dfd15f3c4d062bf8d217

  7. Bugfix

    Reza Rosli ·

    ae0689b0a3e5a3dab27dfaa6e4d81fc5cb66fa98

  8. Simplify

    Reza Rosli ·

    871138d083ec76fd1af813dc239fc00fcaf535ef

  9. Updated dependencies

    Reza Rosli ·

    5807bcd501d517895a73ec8b4cdd33bb4e727cfa

  10. Node14

    Reza Rosli ·

    52dc3a99fb0ae78854017577ded249d5e3f00fee

  11. Lint

    Reza Rosli ·

    50b90c3979703ee87853d0537e6658ace3815e21

  12. Integrate sonarqube

    Reza Rosli ·

    360be4e8de1dbcc882175b1e7dd618e880ca8534

  13. Put the files in the correct place

    Reza Rosli ·

    3366c15c12e9f71322d5e9d80f1616cc14be638c

  14. Pin dependencies

    Renovate Bot ·

    07d1efd76db50753db2223bf05c436984c186f85

  15. Chores/quality

    Reza Rosli ·

    89d534e73a963544cf320eef349afb6850b4776c

  16. Add renovate.json

    Renovate Bot ·

    b95fd070f51b700ed9ff1b1fe0d51f213e3d436a

  17. - Remove all functions related to lead routing - Moved utility functions to one file - Updated packages

    Reza Rosli ·

    73c51b2e1a87533a317ecd4335ab315ded6a3940

  18. Streamline matcher trigger to only be executed through the SQS queue

    Reza Rosli ·

    abad6558b14421abef71a71e2595f05e739466d8

  19. Use delayed SQS messages to trigger next run of leadSPMatcher

    Reza Rosli ·

    7a1d2feb7d04984dabc1da7b10580a36d0867c41

  20. sqs event setting

    Muhammad Anwaar ·

    f0140b11f860e25aa777b92e862829f5a0518ed0

  21. update routing rules and lambda triggers

    Muhammad Anwaar ·

    0783788ba3007ec96710059f3721ba1111694fd4

  22. basic implementation of carousal app with routing rules. unit test not included , in process of writing unit tests

    Muhammad Anwaar ·

    f11653d2ab477a59f3905239ff4e3a7589d01b4b

  23. restructure and update functions

    Muhammad Anwaar ·

    695010848fd88c23dddf39052b88e105fdca5130

  24. carousel app functions

    Muhammad Anwaar ·

    9224713e4d895ab897b1509e4a3debe68d17a0b4