Any sizing exercise with a joint Boomi/Solace solution is going to start with this question, but Solace connections and Boomi connections aren’t the same, so it’s important to understand what the word means in each environment.

Boomi counts each unique link to an application, database, event broker, etc., as a connection. But it’s really a measure of supported login credentials, not a network connection. If you want to connect to a database, you need to specify username, password, IP address, port, and database. Each unique combination of those data constitutes a Boomi connection that needs to be licensed, but you can use that set of credentials to create multiple concurrent connections to the same database (same username, same password, etc…) while only paying for a single Boomi connection.

Solace takes a more network-layer approach and considers every single socket connection between a broker and a client as a connection. That means a Boomi Atom that uses the same connection object (credentials) to create 10 concurrent connections to a Solace broker is using 10 Solace connections, but only 1 Boomi connection.

Solace Queue Configuration

To support concurrent connections to a Solace queue, in order to enable parallel processing (in Boomi) of data from that queue, you need to ensure that the queue is set to support Non-Exclusive queue bindings. By default, the Solace connector creates queues with Exclusive bindings, which means each concurrent connection after the first would be treated as a failover application and only receive data if the client connection created before it was to fail or be closed. I’ll explain how to do that below.

Boomi Performance and Solace Connections with Molecules

There are a few ways Boomi users can tune performance, such as using parallel processing, to increase throughput. The first two are connector operation configuration settings, MaxConcurrentConnectionCount and batch, and the third is Boomi Molecules.

  • MaxConcurrentConnectionCount: This is a connector configuration parameter that lets you allow a Boomi Process to instantiate more than one instance of the given process, i.e. setting this to 3 instructs Boomi to create 3 instances of this process to triple throughput. (Note that the Boomi process needs to be listening either to a Solace topic or a Solace queue that supports non-exclusive queue binding. If the queue is set to exclusive binding, the additional instances would serve only as failover protection. Please read for more information on exclusive vs non-exclusive queue bindings within Solace). While increasing the number of Solace connections by a factor of 3, this does not increase the number of Boomi connections as the credentials are the same.
  • Batch Size: While Boomi processes have the ability to consume and process a single event at a time, they are more efficient at processing sets of events in small batches. So, given a single connection to Solace, that thread can be set to consume more than one event from Solace. The batch size setting allows the Boomi Process developer to set how many events to consume each time. The batch setting has no effect on Solace or Boomi connection count.
    Image of the Solace Connector Operation where a Boomi developer can set connector parameters like Batch size and MaxConcurrentExecutions.
  • Molecules: This approach lets you instantiate additional Atom instances, called nodes, for a similar function, to support parallel processing and additionally for failover, should one of the nodes go down. Thus, the added benefit of a Molecule, over the above MaxConcurrentConnectionCount capability, is the failover aspect if one of the nodes becomes unavailable. Nodes can, and usually do, reside on different HW. Again, this does not increase the number of Boomi connections required but does increase the number of Solace connections by the number of nodes deployed. (A single Boomi Atom behaves just like a Boomi Molecule with one node and would have the same number of Solace connections. I say this because, while there are no single Atoms in the table below, they behave like single node Molecules).

The table below shows the number of Solace connections associated with different variations of the above.
A table that shows the number of Solace connections associated with different variations using the product of Boomi connectors, max concurrent connections, and nodes.

The above table assumes that MaxConcurrentConnectionCount is the same value across all Boomi connection operation configurations. Boomi allows you to set these differently, and it would change the total number of Solace connections. For example, if the # of Boomi connections is 5 and only 3 of the process operations has a MaxConcurrentConnectionCount of 2 with the others being set to 1 and there were still 3 nodes, the Solace connections would be (2+2+2+1+1) connections x 3 nodes = 24 Solace connections, instead of the 30 in the table above when all 5 Boomi connections have 2 concurrent connections.

Atom Workers

In the Boomi Atom Cloud, Boomi has implemented the concept of Atom Workers, again for performance enhancement. The Boomi Atom Cloud is a multi-tenant environment, so it is possible (but not common) to have resource contention across different end customers. You can think of Atom Workers as multiple instances of a given process, but they are reserved for use by the given customer Atom so there is no resource constraint and no startup time (analogous to doing a warmup of a JVM prior to performance testing).

Atom Workers vs Molecules

These do appear to be similar in function, but they’re implemented quite differently. The main difference is where you use them:

  • Molecules are leveraged in on-premises deployments. This could still be in a public or private cloud; the key here is that it is deployed and managed by the customer. Boomi considers any Boomi Atom deployment that is not implemented as part of their SaaS as on-premises.
  • Atom Workers are leveraged in the Boomi Atom Cloud, a full Boomi SaaS.

Boomi Performance and Solace Connections with Atom Workers

Solace connection behavior with Atom Workers is the same as behavior with Boomi Molecule Nodes and connector settings:

  • MaxConcurrentConnectionCount increases the number of Solace connections for each Atom Worker being leveraged by the connection count.
  • Batch Size has no effect.
  • Atom Workers – Each Atom Worker increases the Solace connection count by 1, provided the MaxConcurrentConectionCount is set to 1. It increases linearly with the increased connection count

This table shows some examples of how many Solace connections would be associated with different variations of the above.
A table that shows the number of Solace connections associated with different variations using the product of Boomi connectors, max concurrent connections, and atom workers.

Similar to the table for Boomi Molecules, there is an assumption that all Boomi connection operations in the table have the same setting for MaxConcurrentConnectionCount.  The math would be the same as above should there be different settings for different connection operations.

Exactly what in Boomi will consume a Boomi Connection?

A licensed Boomi connection is a set of credentials in a Boomi connection object that is deployed. It does not need to be a listener as producers are Boomi connections and not listeners. But you can have multiple instances of the same connection credentials: MaxConcurrentConnectionCount, Molecule Nodes and Atom Workers all instantiate additional instances of a single Boomi connection. These all still count as a single Boomi connection, despite their manifesting as multiple client connections to Solace.

On the Solace side, each client consumer counts as a Solace connection. You could have 100 client consumers bound to Solace with the same credentials, from a single Boomi connection object. That is 1 Boomi connection and 100 Solace connections.

Performance and Testing Considerations

You can use Solace’s WebUI to confirm and track work done by concurrent connections from Boomi.
Solace WebUI –> Queues -> Select your queue -> Consumers

Image of Solace WebUI that view the current client consumers (connections) for a given queue.

Here you can view all current client connections, the unacknowledged messages being processed, and the messages confirmed as processing completes.

If you decide to test the above, you will note quickly that the distribution may not appear to be distributed evenly across the Atom Workers or Molecule nodes, especially when the volume is high. Solace is supposed to use a round robin distribution across non-exclusively bound connections. I found often that across a set of 3 nodes, or Atom Workers, 1 node would get 90% of the load and the others the remainder, even if the batch size on the operation was set to 1.

This is because Solace queues will continue to push events to consumers while the consumer has not acknowledged successful processing of the first event. As that message is being processed by Boomi, it is considered a “delivered but unacknowledged message”. Solace will continue to push events to the consumer until a certain number of unacknowledged messages have been sent. That limit is driven by the queue setting: Maximum Delivered Unacknowledged Messages per Flow. When that limit is reached, Solace stops sending events. Once an acknowledgement is received, events can start flowing until Maximum Delivered Unacknowledged Messages is reached again.

What this does is determine how many events a flow (think of this as a Solace connection) can consume while it still has others it has not completed processing yet. Default is 1,000, which may be too high to allow for even distribution across all the connections, so you may want to tune this to a lower level based on your message rate. For example, for a total event message volume of 100, I set mine to 10. See below how to do this.

How to set Maximum Delivered Unacknowledged Messages per Flow

Here’s the two simple steps it takes to set the number of delivered unacknowledged messages a given flow will allow.
If you aren’t familiar with the different kinds of Solace endpoints and how to configure them, I suggest you read my colleague Leah’s excellent post about that.

  1. Bring up the WebUI
    Select Queues -> Select your queue -> Settings -> Show Advanced Settings
    Image of the Solace Web UI that allows a user to configure specific queue settings
  2. Find Maximum Delivered Unacknowledged Messages per Flow and set it to a new value. Mine is set to 10, yours will be different depending on your flow rate.
    Image of Solace Web UI that allows user to change queue specific settings.

And just like that, you’re all set!

Conclusion

I hope this post has helped you understand how Boomi and Solace each define connections, and how to figure out how many Solace connections you need to support a given number of Boomi connections.

Michael Hilmen

Michael is a senior solutions architect with Solace.