Logo

Koyeb Serverless Platform

Deploy a Rust speed test using Actix and WebSockets on Koyeb
Learn more about Koyeb · Explore the documentation · Discover our tutorials

About Koyeb and the Rust speed test with Actix and WebSockets example application

Koyeb is a developer-friendly serverless platform to deploy apps globally. No-ops, servers, or infrastructure management. This repository contains a Rust speed test you can deploy on the Koyeb serverless platform for testing.

This example application is designed to show how a Rust speed test using Actix and WebSockets can be deployed on Koyeb.

Getting Started

Follow the steps below to deploy and run the Rust speed test using Actix and WebSockets on your Koyeb account.

Requirements

You need a Koyeb account to successfully deploy and run this application. If you don't already have an account, you can sign-up for free here.

Fork and deploy to Koyeb

If you want to customize and enhance this application, you need to fork this repository.

On the Koyeb Control Panel, click the Create App button to go to the App creation page.

  1. Name your application.
  2. Select Docker for the deployment method and fill the Docker image field with the name of the image we previously created, which should look like ghcr.io/<YOUR_GITHUB_USERNAME>/koyeb-speed-test.
  3. Check the box "Use a private registry" and, in the select field, click "Create Registry Secret." A modal opens asking for:
    • A name for this new Secret (e.g. gh-registry-secret)
    • The type of registry provider to simplify generating the Koyeb Secret containing your private registry credentials. In our case, GitHub.
    • Your GitHub username and a valid GitHub token having registry read/write permissions (for packages) as the password. You can create one here: github.com/settings/tokens
    • Once you've filled all the fields, click the "Create" button.
  4. Name your service, for example 'main', and then click the "Create Service" button.

You land on the deployment page where you can follow the build of your application. Once the build is completed, your application is being deployed and you will be able to access it via <YOUR_APP_NAME>-<YOUR_ORG_NAME>.koyeb.app.

Contributing

If you have any questions, ideas or suggestions regarding this application sample, feel free to open an issue or fork this repository and open a pull request.

Contact

Koyeb - @gokoyeb - Slack