srill-0.3.1 is not a library.
Visit the last successful build:
srill-1.0.0
srill
Subscribe Redis and Invoke Lambda with cargo lambda, for Local development.
Features
- Subscribe to multiple Redis channels simultaneously
- Invoke different Lambda functions for each channel
- Support for configuration files (TOML format)
- Backward compatibility with single channel mode
- Parallel processing of multiple channels
Usage
First, run cargo lambda watch:
Multiple Channels (Recommended)
Start srill with multiple channel-lambda pairs:
Configuration File
Create a srill.toml configuration file:
= "redis://localhost:6379"
= "sqs"
[]
= "lambda-function1"
= "lambda-function2"
= "lambda-function3"
Then start srill:
Legacy Single Channel Mode
Start srill (legacy mode):
Publishing Messages
Then publish a message to redis:
The corresponding lambda function will be invoked with SQS event.
Options
--redis-url: Redis URL (default:redis://localhost:6379)--mode: Lambda event type (default:sqs)--channels: Channel-Lambda pairs in formatchannel1=lambda1,channel2=lambda2--config: Path to TOML configuration file
Examples
# Multiple channels via command line
# Using configuration file
# Legacy single channel (backward compatibility)
License
MIT