How to Not Repeat Expensive Operations (plus a bonus)
Details
We talk a lot about idempotence in distributed systems, and for good reason. Most of the time we're talking about, say, making sure we don't open the same bank account twice.
But what if you have some operation in your system that is expensive, but we might want to get the results of that operation on several occasions where each occurrence is separated by some unknown amount of time and by different consumers. We're not talking about the standard message recycling or a client resending a command because it wasn't sure that the recipient received it.
For example, suppose that you have a fleet of cellular-connected IOT devices, some of which have the capability of capturing a video stream. You store those files locally, and sometimes your customers want to retrieve those for their own purposes. You don't want to just proactively fetch all of this video because, um, cellular bandwidth ain't free. You'd also love to only fetch a given video segment one time and have that retrieved video on hand for subsequent requests.
This is what we'll look into and present a potential solution for. In the process we'll also see how to deal with a messaging workload when you have a variable number of things to do with that workflow. When you open an account, you're doing one thing. What if you need to be able to do 3 things or 42 things?
This month we'll be hosted at LiveView Technologies in Lindon, and they're providing the food as well, so be sure to thank them! The outside door locks at 6pm, so please message us here when you arrive so we can let you in.
Join us on Zoom: https://aumni-fund.zoom.us/j/85715017082?pwd=cGVjZGxmcnp5WTdqdmh1M0Y1a2FHZz09
A note about Zoom. We got Zoom bombed last time, and while it's great to check that off the bucket list, it wasn't really that fun. So going forward we'll use a waiting room. To attend via Zoom, you'll need to RSVP for the event, and your meetup.com name will need to match your Zoom name. When we see a match there, we'll let you in. Sorry for the hassle. We'd much prefer a more open approach, but humanity. 🤷♂️
