Git Product home page Git Product logo

Comments (3)

yevhen avatar yevhen commented on September 23, 2024 1

I have no problem with that change

from orleankka.

yevhen avatar yevhen commented on September 23, 2024

Hi, Jason!

Did you mean MayInterleave or AlwaysInterleave attribute?

I don't mind changing the behavior of AlwaysInterleave to always interleave but as for MayInterleave I think it's better to leave it as now. IMHO, Orleans should have both options supported.

The ability to have calls which may interleave but not with others is crucial for a lot of use-cases, perhaps the most prominent is a so called system calls, which is kind of a special call that may not interleave with anything else. We have code that relies on this feature.

Example (from our system): we have a Projection actor that receives events that need to be projected on Elasticsearch index. For efficiency we batch index operations using timer and TaskCompletionSource, so senders got an ack only after the successful flush. On the other side, this actor participates in the complex index migration protocol which requires exclusive index access. When we send SwitchOver message to Projection actor it waits in Orleans queue until its turn and then executes exclusively, no event messages are processed concurrently (they're just sitting in Orleans queue).

Anyway, If we could have both options supported (and without breaking backward compatibility) - it's absolutely fine. Perhaps, some kind of boolean on MayInterleave which is false by default (ie current behavior?

from orleankka.

jason-bragg avatar jason-bragg commented on September 23, 2024

Did you mean MayInterleave or AlwaysInterleave attribute?

This change is only for AlwaysInterleave. It has no effect on MayInterleave. This will not be strictly backwards compatible for the AlwaysInterleave behavior, as it will change the way calls with that attribution behave slightly.

from orleankka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.