For several years node.js programmers have been using callbacks, promises and generators for managing asynchronous functions and honestly that was several years of pain. Every of above approaches had it's own pain points like handling exceptions, chaining, breaking a promise chain etc. But that...
This blog post describes technique named "delayed-retry" implemented in alpha-amqp-consumer and inspired by this blog post. When REJECT might not be enough Rejected messages remains in the head of queue. That means once a consumer rejects a message that messages is immediately send...
Currently "testResultsProcessor" option for JEST accepts only single module to process test results. Unfortunately this approach quickly becomes insufficient if you need code coverage remapping and junit reports for CircleCI. Fortunately documentation for JEST is pretty good and says: This option allows the...
It's quite common to believe that Singleton is a total antipattern and should be avoided at all cost. Well... that's not always true. The key here is to understand why Singleton is perceived as a bad thing. Singleton? What is it? Singleton is a creational...
REST is a very popular architecture style for communication. HTTP - as the most commonly used protocol for REST - gives a lot of features for free: cache, basic authentication, metadata channel (via headers), security (SSL/TLS), CORS etc. It fits almost perfectly for public...