Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

275
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda