Hello, there is an array of objects in the radish, which is constantly changing, and in accordance with the objects, functions must be running, and constantly working.

Tell me how you can implement this, and that everything would work stably?

2 Answers 2

Use PubSub in Redis.Or take a more adequate RabbitMQ for this and not torment Redis)
  • I read about what you advised, did not quite understand how in my case you can apply it, how can I start and disable functions using this? – Enchanting2 Jul 19 '19 at 15:24
  • [[jenya7771]] is a slightly different approach, but you don’t have a lot of choice on the fact that the queue is the only adequate pattern for this case.In addition to writing an object to the cache, you send it to the queue on the other side of which someone listens messages and performs certain actions – European13 Jul 19 '19 at 15:27
What is the problem when adding a call function? Better yet, call event, and in a subscription to event, call the function
https://ru.m.wikipedia.org/wiki/%D0%9D%D0B0%D0%B1...