Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update or modernize backend technology #7

Open
pascalwengerter opened this issue Mar 8, 2023 · 0 comments
Open

Update or modernize backend technology #7

pascalwengerter opened this issue Mar 8, 2023 · 0 comments

Comments

@pascalwengerter
Copy link
Owner

Currently, this project uses Ruby v2.7.6 with Sinatra inside a "fat" (~500MB IIRC) Docker base image for what is effectively

  • a single get endpoint to serve the frontend
  • a single post endpoint that performs a handful of syscalls around some tempfiles

Going forward, I see two options:

  1. Updating Ruby (to >v3.1.x), Sinatra and using an alpine Ruby base image

  2. Switching to hosting the frontend statically and porting the backend to a different technology (Go, Rust, Elixir, Crystal, Gleam, ...). Advantages that this would bring are:

  • lower memory footprint in development & production
  • (potentially) single binary deployment
  • quicker development & deployment loop
  • gaining the ability to serve requests concurrently
  • (potentially) easier local setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant