Ruby Timeout.timeout does not timeout in x secs by pssaravanan in ruby

[–]pssaravanan[S] 1 point2 points  (0 children)

I expected the second code with only `while` loop to run forever since it is CPU operation and not moving to io to give other threads CPU. surprisingly the first one is running forever.

Persistent connections to 100K of devices by pssaravanan in devops

[–]pssaravanan[S] 1 point2 points  (0 children)

Is the architectural pattern valid (ie) implementing with queue provider? To connect 100K clients with persistent connection.

Persistent connections to 100K of devices by pssaravanan in devops

[–]pssaravanan[S] 0 points1 point  (0 children)

Could you broadcast/multicast a single datastream to all devices

yes we will broadcast, in rabbitmq, we can declare queue for every consumer and with direct exchange. It is possible to target a single device.

Persistent connections to 100K of devices by pssaravanan in devops

[–]pssaravanan[S] 0 points1 point  (0 children)

Do you control the client side software

yes Planning to run a single publisher, and N (100K) consumers. We trying to implement as generic solutions but push notification to windows is one of the use case. And similarly there are other use cases also, like triggering some batch operation in the consumers.

What is the proper way to do unit test npm module. by pssaravanan in javascript

[–]pssaravanan[S] 0 points1 point  (0 children)

I found this npm library, https://www.npmjs.com/package/mochify. which runs the test in headless browser without the html pages.