Interface EffectSystem<T>

  • All Superinterfaces:
    EventProcessor, EventQueue<T>

    @Deprecated
    public interface EffectSystem<T>
    extends EventProcessor, EventQueue<T>
    Deprecated.
    TODO Should be compatible to other actor based systems. TODO This should provide the basis for parallelization.
    TODO Make it as simple as possible from API side.

    The idea is to create an event based effect system, which can also be used in functional(=side effect free) programs. Currently there is no effort being made, to make the executor of such a system explicitly side effect free. It is enough to ensure that a side effect free executor can be implemented and use it as an alternative executor without changing the code that uses the effect system.

    In Java the disruptor pattern, the actor model and distributed event streaming platforms (like Kafka) are similar thins. This interface should be implementable via Thread, thread pools, actor model frameworks and the disruptor pattern.

    TODO Understand disruptor pattern.

    1. TODO LMAX
    2. TODO http://www.coralblocks.com/index.php/category/coralqueue/
    3. TODO SEDA

    TODO Understand actor model.

    1. TODO https://medium.com/@zakgof/type-safe-actor-model-for-java-7133857a9f72
    2. TODO https://github.com/zakgof/actr This seems to be the most promising, regarding API.
    3. TODO https://www.baeldung.com/akka-actors-java