You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by chandresh pancholi <ch...@gmail.com> on 2017/03/31 09:23:23 UTC

[Urgent] Same file getting downloads from multiple instances

Hi,

I am running Apache camel on 3 Kubernetes pods. Camel consumes file from
FTP directory. These pods are downloading every file from same directory.
Foe ex. directory /abc/def has 20 files every pods will download these 20
files.If one router downloads a file another router in another pods
shouldn't download.

Is there any way I can use apache camel as distributed system to avoid
duplicate download of files?

Please help me out.


-- 
Chandresh Pancholi
Senior Software Engineer
Flipkart.com
Email-id:chandresh.pancholi@flipkart.com
Contact:08951803660

Re: [Urgent] Same file getting downloads from multiple instances

Posted by chandresh pancholi <ch...@gmail.com>.
Thank you so much for saving my day. :) :)

On Fri, Mar 31, 2017 at 3:11 PM, Zoran Regvart <zo...@regvart.com> wrote:

> Hi Chandresh,
> have a look at Idempotent Consumer EIP[1] pattern,
>
> zoran
>
> [1] https://camel.apache.org/idempotent-consumer.html
>
> On Fri, Mar 31, 2017 at 11:23 AM, chandresh pancholi
> <ch...@gmail.com> wrote:
> > Hi,
> >
> > I am running Apache camel on 3 Kubernetes pods. Camel consumes file from
> > FTP directory. These pods are downloading every file from same directory.
> > Foe ex. directory /abc/def has 20 files every pods will download these 20
> > files.If one router downloads a file another router in another pods
> > shouldn't download.
> >
> > Is there any way I can use apache camel as distributed system to avoid
> > duplicate download of files?
> >
> > Please help me out.
> >
> >
> > --
> > Chandresh Pancholi
> > Senior Software Engineer
> > Flipkart.com
> > Email-id:chandresh.pancholi@flipkart.com
> > Contact:08951803660
>
>
>
> --
> Zoran Regvart
>



-- 
Chandresh Pancholi
Senior Software Engineer
Flipkart.com
Email-id:chandresh.pancholi@flipkart.com
Contact:08951803660

Re: [Urgent] Same file getting downloads from multiple instances

Posted by Zoran Regvart <zo...@regvart.com>.
Hi Chandresh,
have a look at Idempotent Consumer EIP[1] pattern,

zoran

[1] https://camel.apache.org/idempotent-consumer.html

On Fri, Mar 31, 2017 at 11:23 AM, chandresh pancholi
<ch...@gmail.com> wrote:
> Hi,
>
> I am running Apache camel on 3 Kubernetes pods. Camel consumes file from
> FTP directory. These pods are downloading every file from same directory.
> Foe ex. directory /abc/def has 20 files every pods will download these 20
> files.If one router downloads a file another router in another pods
> shouldn't download.
>
> Is there any way I can use apache camel as distributed system to avoid
> duplicate download of files?
>
> Please help me out.
>
>
> --
> Chandresh Pancholi
> Senior Software Engineer
> Flipkart.com
> Email-id:chandresh.pancholi@flipkart.com
> Contact:08951803660



-- 
Zoran Regvart

Re: [Urgent] Same file getting downloads from multiple instances

Posted by Claus Ibsen <cl...@gmail.com>.
The Camel in Action 2nd ed book covers this in the transaction and
idempotency chapter and as well in the clustering.

On Fri, Mar 31, 2017 at 11:23 AM, chandresh pancholi
<ch...@gmail.com> wrote:
> Hi,
>
> I am running Apache camel on 3 Kubernetes pods. Camel consumes file from
> FTP directory. These pods are downloading every file from same directory.
> Foe ex. directory /abc/def has 20 files every pods will download these 20
> files.If one router downloads a file another router in another pods
> shouldn't download.
>
> Is there any way I can use apache camel as distributed system to avoid
> duplicate download of files?
>
> Please help me out.
>
>
> --
> Chandresh Pancholi
> Senior Software Engineer
> Flipkart.com
> Email-id:chandresh.pancholi@flipkart.com
> Contact:08951803660



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2