Giter VIP home page Giter VIP logo

quacktors's Issues

Add component.Verifier

The verifier forwards a message to a Verificator and caches the message. As soon as the verifier gets a "Read" message, the cached message is removed. If the verifier gets a "DownMessage", a resend of all cached messages to the verifier is scheduled and the verifier restarts the verificator

Add network autodiscovery

quacktors.EnableDiscovery(5 * time.Seconds) //by default UDP discovery is enabled but a custom discovery method can be set

Add remote nodes

At first we just want to be able to resolve and connect to a remote system

Fix feature/control-channel

All tests should pass. The arch change to control channel is important so that there is no weird raisyness in the quit behaviour. This is testable via

for run in {1..50}; do go test -run TestGenServerCallWithTimeout; done

Still active

Great project is to still active?

Any plan to continue developing this framework?

Add generator component

This component is able to yield values to another PID.

type FileGenerator struct {
    Path string
}

func (f *FileGenerator) Run(ctx *yield.Context) error {
    file, err := os.Open(f.Path)
    if err != nil {
        return err
    }
    defer file.Close()

    scanner := bufio.NewScanner(file)
    for scanner.Scan() {
        ctx.Yield(quacktors.StringMessage(scanner.Text()))
    }

    if err := scanner.Err(); err != nil {
        return err
    }

    return nil
}

pid := quacktors.Spawn(func(ctx *quacktors.Context, message quacktors.Message) {
    fmt.Println(m.Value)
})

g := yield.New(FileGenerator{Path: "/path/to/file.txt"})
g.AddReceiver(pid)

quacktors.SpawnStateful(g)

Add DynamicSupervisor

Same as supervisor, but returns PIDs to relays that relay to the named PIDs of the supervisor component

Change message serialization

Investigation required but as of right now, gob is suboptimal.
Thought about going for BSON + some custom encoder.
Want to, ideally, get rid of quacktors.Message and replace it with interface{}. This will make sending messages to remote actors more difficult tho as this would mean we'd have a lot of combinations for decoding.

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.