Giter VIP home page Giter VIP logo

actix-dapr-rs's Introduction

What we do in this project?

We want to use dapr with dapr-rs, but also wants to run actix-web and other gRPC lib such as tonic in the same?

Why we did that?

dapr-rust-sdk is only with very basic sample on tokio, but what we want to do is more :) We want to combine all of them together (dapr + actix-web + tokio + tonic). Let do it to see how far we can go there :)

How to run

Make sure you have dapr CLI on local machine:

CLI version: 1.1.0

Runtime version: 1.1.2

$ dapr init

Run standalone mode

$  dapr run --app-id rust-subscriber --app-protocol grpc --app-port 50010 --log-level debug cargo run

Then

$ dapr run --app-id rust-publisher --app-protocol grpc --log-level debug cargo run

You should see the ping and pong message on the subscriber console!

And you can call Helloworld on 50010 - http2 as well as access to http://127.0.0.1:8088/index.html =))

Run on docker-compose

If you run dapr CLI before on your local machine, plz make sure you run

$ dapr uninstall --all

And now run the following commands:

$ docker-compose build
$ docker-compose up

Happy hacking!

actix-dapr-rs's People

Contributors

thangchung 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.