Search code examples
c#transactionshazelcast

Hazelcast using Transaction with C# Client and propagating to Sql Server


Using the Hazelcast IMDG using C#.Net, which has lot of interesting Data structures to suit various use cases, It does support transactions in Java as detailed in this link.

Not able to find any reference regarding C#, therefore wanted to understand:

  1. Does C# client support Transactions ?
  2. If Yes, then does transaction propagate support to external system like Sql Server
  3. If No, what are the other strategies, Compensating Transaction, Write Behind, which are supported by HazelCast

Solution

  • Hazelcast .Net Client support transactions with a similar API to Java. You can see the API doc

    1. Hazelcast .Net Client does support transactions.
    2. Unfortunately there is no two phase transaction or XA support so that you cannot propagate the transaction to Sql server.
    3. Hazelcast does not have a builtin support for Compensating Transactions.