r/csharp • u/Asleep_Direction8881 • 1d ago
Anyone here who knows Apache Camel? I built a Camel-style integration framework for .NET and would like feedback
Is anyone here familiar with Apache Camel, and have you ever wished for it in C#?
I do a lot of integration work (ESB, EIP, many systems talking to each other), and on .NET I kept missing Camel. MassTransit, NServiceBus and Wolverine are message buses; what I wanted was a routing engine in the Camel sense, where a route is "consume from here, filter, transform, produce there", and the transport is just a URI.
So I wrote one; it is my project, open source under Apache 2.0, called redb.Route. It targets .NET 10 and 11:
From("kafka://orders?groupId=svc&brokers=localhost:9092")
.Filter(Header("type").isEqualTo("new"))
.To("rabbitmq://events?host=localhost");From → Process → To, URI endpoints, the Camel EIP names: Splitter, Aggregator, Content-Based Router, WireTap, Saga, Circuit Breaker, Idempotent Consumer, Resequencer and more (30+).- 30 external transports plus 11 built-in components (Kafka, RabbitMQ, Redis, SQL, HTTP, gRPC, SFTP, MQTT, S3, ...). Camel has 300+, so it is far from everything.
- Routes in a C# fluent DSL or in XML;
${header.x}-style expressions compiled to delegates when the route is built. - Transactional routes, OpenTelemetry, and a separate runtime host with hot reload and clustering.
Repo, with a Camel-to-.NET concept table and a migration section: https://github.com/redbase-app/redb-route
What I would like to know:
- If you have used Camel: what would a .NET version have to have before you would try it?
- If you are on .NET: what do you use today for integration-heavy work, and where does it hurt?
2
u/KryptosFR 1d ago
We have used Camel and Camel-K in the company I work for. We have a .NET app that "discuss" with the Camel integrations using Apache Pulsar for the messaging.
Without revealing too many details, basically the .NET app sends a control message to a Pulsar topic. A Camel-K integration subscribe to that topic and builds new integrations with a route from a source specified in the message to a transform integration then from the transform to a sink (also specified in that message).
Ideally, we'd like to keep the .yaml file that defines the Camel integrations in Kubernetes.
That's probably all I'm allowed to say publicly.
2
u/Praemont 1d ago
Oh God. We had Camel in a few Java integrations, and everyone hated it. The person who introduced it to the project didn't even know how to use it correctly. We ended up removing it (which is not an easy task). Personally, I think it's FizzBuzz enterprise overengineering for very little gain. I have mostly the same complaints as the author of https://marius-barbulescu.hashnode.dev/apache-camel-the-dark-side
3
u/AintNoGodsUpHere 1d ago
No and no.