Comparison

Solace or Kafka: when to choose Solace?

Kafka has become the default answer whenever events come up. Yet to move business events between applications, sites and partners, Solace is often the better fit. We have been a Solace partner for six years: here is our view, including the cases where Kafka remains the right choice.

The short answer

Choose Solace to carry operational events (orders, stock, statuses, payments) between different applications, sites and clouds, with several protocols, fine-grained routing and guaranteed delivery. Keep Kafka to store and replay large event histories, or for large-scale stream processing on the data side. The two work together: the Solace broker includes a bridge to Kafka.

The differences, criterion by criterion

Solace is an event and message broker; Kafka is a distributed event log. They overlap, but they are not designed for the same job.

CriterionSolaceKafka
ModelBroker: publish and subscribe, queues, request-replyDistributed log: events are written to partitions, then read by consumers
ProtocolsSolace APIs, plus open standards on the same broker: MQTT 3.1.1 and 5, AMQP 1.0, JMS, REST, WebSocketKafka protocol; other protocols go through connectors or gateways to add
RoutingHierarchical topics with wildcards (for example order/FR/store-42/created): each consumer only receives what concerns itTopics split into partitions; fine-grained filtering often happens in consumer code
Guaranteed deliveryPersistent queues, acknowledgements, retries, dead message queue, message time-to-liveRetention, with each consumer managing its read position; failed messages must be handled in applications or Kafka Connect
Several sites and cloudsEvent mesh: brokers are linked and each event is routed to wherever it has subscribersReplication between clusters (MirrorMaker, or tools from commercial offerings) to configure
Replaying historyPossible with the replay log, mainly to recover after an incidentA strength: long retention, replay at will
Stream processingWith external toolsRich ecosystem: Kafka Streams, Kafka Connect, Apache Flink
OperationsSoftware broker (container, virtual machine) on premises or in the cloud, or a service managed by SolaceOpen source to run yourself, or a managed service (Confluent Cloud, Amazon MSK…); partitions to size

When to choose one or the other

Solace, when…

  • applications, stores, warehouses or plants must receive the same events, in the cloud and on premises;
  • an order, a stock movement or a payment must never be lost, even when the recipient is down;
  • several protocols coexist: connected devices on MQTT, Java applications on JMS, partners on REST;
  • each consumer should only receive its share (a country, a site, an event type);
  • a legacy JMS message bus needs replacing.

Kafka, when…

  • large event histories must be kept and replayed at will (analytics, audit, rebuilding a state);
  • data teams run large-scale stream processing: continuous aggregation, enrichment, detection;
  • Kafka is already in place, well run, and feeds analytics tools.

Situations where Solace makes the difference

The ones we come across most often with our clients:

  • a legacy JMS bus is reaching end of support or becoming hard to maintain;
  • remote sites (stores, warehouses, plants) must stay in sync despite network outages;
  • every new consumer means another topic and more filtering code;
  • several brokers coexist (MQTT for connected devices, JMS, Kafka) and do not talk to each other;
  • nobody can say where an event went between being sent and being received.

Solace and Kafka together

The two are not mutually exclusive. The Solace broker includes a bridge to Kafka, in both directions, with no Kafka Connect infrastructure to add; Kafka Connect connectors also exist. A common pattern: operational events flow over Solace between applications and sites, and those that need to be analysed or kept for a long time go on to Kafka and the data platforms.

How we approach the question

We Are Beebay has been a Solace partner for six years, and we also work in systems where Kafka is already in place. We start from the events to carry: who publishes, who consumes, at what volumes, with what tolerance for loss or delay, across which sites. When Kafka already does its job, we keep it and connect it to Solace rather than replacing everything.

Frequently asked questions

Is Solace an alternative to Kafka?

For moving operational events between applications and sites (orders, stock, statuses), yes, and it is often the best choice. For storing and replaying large histories or large-scale stream processing, Kafka remains a better fit. Many companies use both.

Can Solace and Kafka be used together?

Yes. The Solace broker includes a bridge to Kafka that moves events in both directions, with no Kafka Connect to add. Connectors for Kafka Connect also exist, if that is the tool already in place.

How does Solace make sure an event is not lost?

Important events are published in guaranteed mode: the broker stores them in persistent queues until the recipient acknowledges them. If the recipient is down, messages wait for it; after several failures, they go to a dedicated queue to be analysed and replayed.

Read the article →

Does Solace run on premises and in the cloud?

Yes. The broker comes as software (container or virtual machine) to install on premises or in the cloud of your choice, and as a service managed by Solace. Brokers connect to each other to form an event mesh.

Can a legacy JMS bus be migrated to Solace?

Yes. Solace supports the JMS API, so existing applications can be moved by changing their configuration rather than their code. Migration is done application by application, with both buses running side by side during the switch-over.

What does the cost of a Solace project depend on?

The number of brokers and sites, event volumes, high-availability needs, the choice between a managed service and a broker installed on your side, and the number of applications to connect. We discuss it based on your actual flows, in a first conversation.

Weighing Solace against Kafka?

Tell us which events you want to move and what is already in place: we will tell you what we would do, Kafka included.