<p>We are in the process of migrating our Service Fabric services to Kubernetes. Most of them were &quot;stateless&quot; services and were easy to migrate. However, we have one &quot;stateful&quot; service that uses SF's Reliable Collections pretty heavily.</p>
<p>K8s has Statefulsets, but that's not really comparable to SF's reliable collections.</p>
<p>Is there a .NET library or other solution to implement something similar to SF's Reliable Collections in K8s?</p>

<p>AFAIK this cannot be done by using a .Net library.
K8 is all about orchestration. SF on the other hand is both an orchestrator + rich programming /application model + state management.
If you want to do something like reliable collection in K8 then you have to either</p>
<p>A) built your own replication solution with leader election and all.</p>
<p>B) use private etcd/cockroachdb etc. store</p>
<p>This article is pretty good in terms of differences.</p>
<p><a href="https://learn.microsoft.com/en-us/archive/blogs/azuredev/service-fabric-and-kubernetes-comparison-part-1-distributed-systems-architecture#split-brain-and-other-stateful-disasters" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/archive/blogs/azuredev/service-fabric-and-kubernetes-comparison-part-1-distributed-systems-architecture#split-brain-and-other-stateful-disasters</a></p>
<p>&quot;Existing systems provide varying levels of support for microservices, the most prominent being Nirmata, Akka, Bluemix, Kubernetes, Mesos, and AWS Lambda [there’s a mixed bag!!]. SF is more powerful: <strong>it is the only data-ware orchestration system today for stateful microservices</strong>&quot;</p>
