CloudActors icon indicating copy to clipboard operation
CloudActors copied to clipboard

Separate package for interfaces?

Open codymullins opened this issue 1 year ago • 5 comments

Hey there, I'm trying to understand where this project fits.

I see the Devlooped.CloudActors package has a dependency on Orleans.Server, and this package includes the interfaces for IActorCommand, etc.

How do you envision this being used? For example, do you foresee these actors only being for internal usage? Suppose a system (FOO) is built with these actors. The system has clients (BAR) that need to connect to it to perform operations. Would it be expected that something else sits in front of this, e.g. an API? Or could a nuget package be published that allows BAR to call FOO using the message bus?

Back this issue Back this issue

codymullins avatar Aug 26 '24 17:08 codymullins

Hi there!

I have a work in progress branch that decouples the server from the main package for precisely this. The idea is that your business logic can be completely ignorant of Orleans, and you can simply use the message bus to invoke the logic from anywhere in the app.

Due to a current limitation/bug in orleans, I haven't been able to merge and ship that yet. I'm hoping that will be fixed eventually and I'll move forward with the split.

kzu avatar Sep 02 '24 19:09 kzu

Very good!!! Looking forward to that release!

samcov avatar Sep 03 '24 01:09 samcov

Please go upvote the issue in Orleans so we can get more traction 🙏

kzu avatar Sep 03 '24 02:09 kzu

Done!

samcov avatar Sep 03 '24 05:09 samcov

Done too!

johnkattenhorn avatar Oct 09 '24 09:10 johnkattenhorn

The fix is now in, YAY!. So I'm just waiting for it to ship so I can move forward with this

kzu avatar Oct 15 '24 17:10 kzu

Orleans just shipped v9 last week which now contains the required fix. So I can now move forward with the split :)

kzu avatar Nov 19 '24 16:11 kzu