How do SOFTBOTs communicate with one another?

  • Updated

SOFTBOTs don't call each other… they post

SOFTBOTs don't talk to each other directly at all.

Instead, think about how a social media feed works:

  • When something happens, someone posts about it, and tags the post.
  • Everyone else has already chosen who and what they follow, so their feed shows only what's relevant to them.
  • Nobody has to phone each of their friends individually to share news.

 

On the SOFTBOT Platform, that shared feed is called the event bus. SOFTBOTs post to it, and SOFTBOTs read from it. One SOFTBOT's post can reach one SOFTBOT, or many.

There are three ideas working together here, so let's take them one at a time.

Signals and normalized data

Before the 1950s, cargo was loaded onto ships as loose crates, sacks and barrels, every one a different shape. Loading a ship took days, and every port needed to know how to handle every kind of cargo.

Then came the standard shipping container. Same size, same corners, same fittings, every time. Suddenly any ship, any crane, any train and any truck could handle any cargo, without caring what was inside or where it came from.

The SOFTBOT Platform uses the same idea, and it's a cornerstone of how we designed it.

  • The normalized data structure is the container. It's a common, standard way of describing the things that matter in a warehouse (an order, a pick task, a status update) that's used across the entire platform. It means the same thing no matter which technology the data came from.
  • The signal is the shipment. A signal is a data event, an announcement that "this thing happened," with the normalized data structure attached. Signals are how one SOFTBOT hands information to one or many other SOFTBOTs.

Here's what a Connector does with a message from its technology:

  • Coming in: The Connector receives a message from its technology, confirms the sender is who they say they are, checks that the message is valid, translates it into the normalized data structure, and posts it to the event bus as a signal.
  • Going out: The Connector picks up a signal from the event bus and translates the normalized data back into exactly the format its technology expects.

Because everything in between travels in the same standard container, SOFTBOTs can exchange data without knowing, or caring, which technologies sit on the other side.

And when a piece of work takes a while and the platform needs to remember where things stand along the way, it keeps track of that progress too, so nothing gets lost between steps.

Why does that matter?

  • Nobody upstream or downstream has to change. Each Connector absorbs the differences of its own technology.
  • Swap technologies without starting over. If you replace one AMR vendor with another, only the interpreter changes. The rest of your operation keeps receiving the same normalized information.
  • Compare apples to apples. Because data from every technology lands in the same shape, you can actually compare performance across systems, sites and vendors.

Event subscription

In a busy operation, a lot of signals are using the event bus. So does every SOFTBOT have to receive every single one, read it, and then decide whether it cares?

…No.

Think about setting up your social media profile. You don't want every post on the internet landing in your newsfeed, so you curate it. You follow certain people, certain pages and certain topics, and your feed shows you only what matches.

SOFTBOTs do exactly the same thing, using event subscription. Here's how it works in plain terms:

  • Every event gets a tag. When a SOFTBOT publishes an event, the event can carry a tag (we call it a routing key) that describes what kind of information it is and who published it.
  • Every SOFTBOT follows the tags it cares about. When a SOFTBOT is set up, it's configured to subscribe to events of a certain type with a matching tag. That's its curated newsfeed.
  • The event bus does the sorting. Each SOFTBOT receives only the events that match its subscription. Nothing else ever lands in its feed.
  • One SOFTBOT can follow more than one thing. A single SOFTBOT can contain several workflows, each kicked off by a different event, so it can hold several subscriptions at once.

Let's follow a pick order from start to finish

Here's how those ideas come together in a real-world flow between a WMS, a SOFTBOT Orchestration and a fleet of pick-assist AMRs.

  1. The WMS sends a new pick order. It sends the order, in its own format, to the WMS Connector.
  2. The WMS Connector translates and posts. It confirms the WMS is who it says it is, checks the message, translates it into the normalized data structure and posts a "pick task created" signal to the event bus.
  3. The Orchestration gets to work. The SOFTBOT Orchestration is subscribed to "pick task created," so the signal lands in its feed. It applies the business rules, updates the normalized data, and posts a "pick task released" signal.
  4. The AMR Connector translates and sends. The AMR Connector is subscribed to "pick task released." It translates the normalized data into the AMR fleet's own pick job format and sends it to the fleet management software.
  5. The robots and people do the work. The pick is physically carried out on the floor.
  6. The AMR fleet reports back. The fleet management software tells the AMR Connector the job is complete. The Connector confirms the sender, checks the message, translates it into the normalized data structure and posts a "pick task completed" signal.
  7. The WMS hears the good news. The WMS Connector is subscribed to "pick task completed." It translates the normalized data into the WMS's own "pick order completed" format and sends it to the WMS.

Notice what didn't happen: the WMS never had to know the AMR fleet existed. The AMR fleet never had to know what a WMS was. Neither one had to change a single line of its API. And no SOFTBOT wasted effort reading signals that had nothing to do with it.

That's what engineers call loose coupling, and it's what makes the SOFTBOT Platform flexible:

  • Swap the AMR vendor? Replace one Connector. The WMS Connector and the Orchestration don't change.
  • Change the business rules? Update the Orchestration. Neither the WMS nor the robots notice.
  • Add a new consumer of the data? Add a SOFTBOT Feature, or a dashboard, alert or analytics tool, that subscribes to signals that are already flowing.

Summary

The concepts described above (normalized data, publish-and-subscribe messaging and event sourcing) are well-established ideas in modern software architecture. What makes the SOFTBOT Platform different is how we've applied them to the real-world mess of enterprise integration: dozens of vendors, protocols old and new, and operations that can't afford downtime.

 

Related to

Was this article helpful?

0 out of 0 found this helpful