I am not really familiar with cassandra but I think they do support conditional
insert/update. Something like Insert into my_table (col1) values ('val1') if
not exists;.
See if it actually does support conditional insert/update and if you can use
this feature.
Thanks
Parth
From: Javier Gonzalez <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Date: Tuesday, March 3, 2015 at 10:43 AM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: Re: Exactly once transactions and storm
Thanks for your reply. This could work, as the problem domain has a unique Id
in the incoming stream, but I believe the db will be Cassandra, which updates
instead of throwing errors when inserting a duplicate key. So I can't rely on
that.