GithubHelp home page GithubHelp logo

Implement Basic App Platform about bonsaidb HOT 3 CLOSED

ecton avatar ecton commented on September 15, 2024 3
Implement Basic App Platform

from bonsaidb.

Comments (3)

ecton avatar ecton commented on September 15, 2024

I was investigating adding optional HTTP support via routerify and replace the server's websockets with it. It looks like routerify is going through an update to 2.0, and it might take the ecosystem a little while to get caught up. Currently routerify-websocket introduces old tokio dependencies, which I'd prefer to avoid. I want to wait until it is updated. It appears work is underway.

Overall, I like the design of routerify's API, so I'd rather wait and adopt it than seek other solutions. So, for now I'm going to just table this project for a little while and focus on other areas.

from bonsaidb.

ecton avatar ecton commented on September 15, 2024

Tokio has a new project that looks very tempting: https://tokio.rs/blog/2021-07-announcing-axum

It honestly feels like a better choice as I can investigate exposing the HTTP layer as a tower service? Not really sure, I need to spend time understanding how tower combines services, but it seems like this is a good direction to explore.

from bonsaidb.

ecton avatar ecton commented on September 15, 2024

In #97, I've implemented this by extending the Backend trait with an extra method when the http feature flag is enabled (server-http for the omnibus crate). I've added an example that shows how to use this to serve requests using the Axum crate. Additionally, #95 added automatic ACME certificate acquisition.

This issue as it stands has been implemented, although we still have more a grandiose vision for the platform as a whole.

from bonsaidb.

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.