Hi Jared,

The Execute method and the client object in general are thread-safe.
You can see an example here:

https://github.com/basho/riak-dotnet-client/blob/develop/src/RiakClientTests.Live/ParallelExample.cs

The next version of the client will have additional support for
batching command for execution.

--
Luke Bakken
Engineer
lbak...@basho.com


On Mon, Apr 18, 2016 at 7:53 AM, Phillips, Jared R
<jared.phill...@hexagonsi.com> wrote:
> All,
>
>
>
> Using the Riak .NET client, what is the best way to execute CRDT commands as
> part of a batch?  For example, I would like to wrap the FetchMap command
> together with other commands and send them to Riak as a group so as to
> reduce the number of round trips to the server.  My API has no expectations
> regarding execution order or transactional behavior.  It appears this was
> possible at one point using the DtFetchMap method on the IRiakBatchClient
> interface, but it is now marked as deprecated along with all the other “Dt”
> methods on this interface.  Since the consumers of my API only rely on
> batching as a performance optimization, I am currently invoking commands
> individually using the Execute method on the IRiakClient interface.  I am
> hoping to improve on this though.
>
>
>
> Any guidance would be appreciated as  I am very new to Riak.
>
>
>
> Regards,
>
>
>
> Jared Phillips
> Software Scientist
>
> Technology & Innovation
>
> T: 256.730.8205
> E: jared.phill...@hexagonsi.com
>
>
>
> Hexagon Safety & Infrastructure
>
> 305 Intergraph Way
>
> Madison, AL, 35758
> hexagonsafetyinfrastructure.com| LinkedIn | Facebook | Twitter
>
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to