Git Product home page Git Product logo

Comments (2)

smrchy avatar smrchy commented on August 25, 2024

You are creating a queue with the default settings (vt: 30, delay: 0, maxsize: 65536).

Then your are sending a message "Hello world" with delay=1. The delay=1 means this particular message will only appear after 1 second to recipients. As you are trying to receive the message right afterwards it won't be received. Which is correct.

  • Send a message without the "delay" parameter to receive it immediately.
  • Try a receiveMessage after 1+ seconds to receive the message.

from rsmq.

smrchy avatar smrchy commented on August 25, 2024

If you want to create a delayed queue where all messages are delayed by n seconds you should use the delay parameter with the createQueue method.

Your queue worker(s) typically poll the queue every second and will receive all messages after the delay has passed

from rsmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.