Git Product home page Git Product logo

resonate's Introduction

Resonate is in the Design Phase

Our code base is constantly evolving as we are exploring Resonate's programming model. If you are passionate about a dead simple developer experience, join us on this journey of discovery and share your thoughts.

Join our slack



Resonate

ci dst codecov Go Report Card License

Docs   •   Twitter   •   Slack   •   Issues   •   Roadmap

Why Resonate?

Resonate offers a programming model that allows you to build distributed applications using an intuitive paradigm you already know — async await.

What is Durable Async Await?

Durable Async Await are Functions and Promises that maintain progress in durable storage.

Install

Resonate is currently in active development without a formal release cycle. We welcome early adopters to experiment with the latest build from main as we work towards our first stable release. Your feedback is greatly appreciated.

OS Architecture Link
MacOS x86_64 Install
MacOS aarch64 Install
Linux x86_64 Install
Linux aarch64 Install

Getting Started

Resonate makes it easy to get started creating and interacting with durable promises. Follow these steps to build and run Resonate, then start creating and completing promises.

  1. Build and Run

    The resonate server supports http and grpc protocols as well as sqlite and postgres as a data store.

    # Build
    go build -o resonate
    
    # Start
    ./resonate serve

    Once running, you'll see log output like:

    time=2023-01-01T00:00:00.000-00:00 level=INFO msg="starting http server" addr=0.0.0.0:8001
    time=2023-01-01T00:00:00.000-00:00 level=INFO msg="starting grpc server" addr=0.0.0.0:50051
    time=2023-01-01T00:00:00.000-00:00 level=INFO msg="starting metrics server" addr=:9090
  2. Create a Promise

    On separate terminal, create a durable promise with a unique identifier, timeout, and data.

    resonate promise create my-promise \
    --timeout 2524608000000 \
    --data 'Durable Promise Created'
  3. Complete a Promise

    Finally, complete the promise by resolving or rejecting it Pass the same ID and the completed state.

    resonate promise complete my-promise \
    --state RESOLVED \
    --data 'Durable Promise Resolved'
    resonate promise complete my-promise \
    --state REJECTED \
    --data 'Durable Promise Rejected'

Development

go run ./...
go test -v ./...

Contributing

See our contribution guidelines.

License

The Resonate Server is available under the Apache 2.0 License.

resonate's People

Contributors

dfarr avatar guergabo avatar dependabot[bot] avatar dreamjz avatar dtornow avatar zeu5 avatar vaibhawvipul avatar huesflash avatar

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.