Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
How to write to MongoDB asynchronously with Apache Camel

I'd like to know if it is possible to write to MongoDB with Apache Camel and choose to write asynchronously. I've seen no reference for the MongoDB Java Reactive Streams Driver, but I'd like to know if there's also an option of writing to MongoDB with Apache Camel with the Reactive driver (for Project Reactor users).

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The MongoDB producer Apache Camel component uses the Sync - MongoDB Java Driver by default.

A component in Apache Camel runs as is and cannot be modified unless through a predefined set of configuration options.

To achieve multi-threading, you can decouple the continuation of message routing from consuming thread using the Threads EIP patten:

from("direct:operation")
    .threads(1)
    .to("mongodb:myDb?database=someDb&collection=someCollection&operation=save")

You can read more on the supported options in the documentation.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!