Kinetics
Kinetics is a hosting platform for Rust applications that allows you to deploy all types of workloads by writing only Rust code.
pub async
Check out more examples here. Including REST API endpoints, queue workers, and cron jobs.
Features
🦀 Only Rust code required
Just apply attribute macro to your function, and Kinetics will handle the rest. No other tools required.
🚀 Supports any workload
Deploy REST API endpoints, queue workers, and cron jobs.
🏕️ Works offline
Test your functions locally with no connection to the internet. We mock DB as well, so all requests to DB also work locally. No configuration required.
💿 Comes with DB
Seamlessly provision KV DB if your workload needs a persistent storage.
🔑 Secrets
Automatically provision secrets from .env.secrets file.
📚 Real time logs Monitor your functions with just CLI.
🤖 No infrastructure management
The infrastructure is provisioned automatically, e.g. a queue for the worker workload.
🌍 CDN
REST API endpoints are served through a Content Delivery Network (CDN).
Try it
# 1. Install
# 2. Login or sign up
# 3. Apply one of attribute macro
# E.g. add #[endpoint()] to your function
# 4. Test locally
# View all resources first to get the full name of your function. Run in the dir with the project.
# 5. Deploy
# Run in the dir of your crate
Kinetics is currently in ⚠️ active development and may contain bugs or result in unexpected behavior. The service is free for the first 100,000 invocations of your functions, regardless of the type of workload.
If you have any issues, please contact us at support@usekinetics.com.
Documentation
All configuration can be done through attribute macro parameters, or through modifications to existing Cargo.toml file in your project. All types of workloads support environment variables. These can be changed without redeploying (this feature is WIP).
Endpoint
The following attribute macro parameters are available:
url_path: The URL path of the endpoint.environment: Environment variables.
Worker
Attribute macro parameters:
concurrency: Max number of concurrent workers.fifo: Set to true to enable FIFO processing.environment: Environment variables.
Cron
Attribute macro parameters:
schedule: Schedule expression.environment: Environment variables.
Secrets
Store secrets in .env.secrets file in the root directory of your crate. Kinetics will automatically pick it up and provision to all of your workloads in the second parameter of the function as HashMap<String, String>.
Example:
# .env.secrets
API_KEY=your_api_key_here
pub async
Database
Database is defined in Cargo.toml:
[]
# You will need this name to connect to the database
# If not defined then the resource name from above will be used as DB name
= "test"
Connect to the database (we provision AWS DynamoDB) using the name defined in Cargo.toml:
pub async
Commands
kinetics login- Log in with emailkinetics invoke- Invoke function locallykinetics deploy- Deploy your applicationkinetics destroy- Destroy application and all of its resourceskinetics logs- View application logs [Coming soon]
Support & Community
- support@usekinetics.com. Help with builds, deployments, and runtime.
- GitHub Issues. Persistent bugs, and feature requests.