You are planning to add unit tests to your application. You need to be able to assert that published Pub/Sub messages are processed by your subscriber in order. You want the unit tests to be cost-effective and reliable. What should you do?
I’m a bit confused about the options. Creating a topic and subscription for each tester seems excessive, but I wonder if option B could work in some scenarios?
I remember we discussed the importance of using an emulator for testing Pub/Sub messages. It seems like option D might be the best choice for cost-effectiveness.
Adding a filter by tester to the subscription could be a good way to isolate the tests, but I'm not sure if that would guarantee the order of message processing.
This sounds like a tricky one. I'll need to think through the different options carefully to come up with the most cost-effective and reliable solution.
The Pub/Sub emulator? Isn't that like using a crystal ball to predict the future of your messages? I'm going with option A, the mocking framework. It's the only way to be sure.
Adding a filter by tester to the subscription? That's just asking for trouble. I'm going with the Pub/Sub emulator, it's the most cost-effective and reliable option.
Creating a topic and subscription for each tester sounds like a lot of work. I think the Pub/Sub emulator is the way to go. It'll save us time and money.
Adolph
4 months agoCorinne
4 months agoClement
4 months agoKristine
4 months agoRex
5 months agoLeah
5 months agoBrent
5 months agoGladys
5 months agoCelestina
5 months agoAzalee
5 months agoBambi
5 months agoMing
5 months agoCarmelina
5 months agoTaryn
5 months agoAnnmarie
10 months agoChandra
9 months agoEzekiel
9 months agoYuriko
9 months agoKiera
10 months agoSina
10 months agoAlayna
9 months agoTerry
9 months agoWilford
9 months agoNathalie
9 months agoEarleen
10 months agoIsabella
9 months agoArthur
9 months agoJohnetta
10 months agoRocco
10 months agoErnie
9 months agoTiera
9 months agoLayla
9 months agoHarley
11 months agoXuan
11 months agoKenia
11 months ago