File tree 1 file changed +21
-2
lines changed
edge/wasm-sensors/network
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
# AWS Configuration
2
2
AWS_ACCESS_KEY_ID=your_access_key
3
3
AWS_SECRET_ACCESS_KEY=your_secret_key
4
+ AWS_REGION=your_region
5
+ SQS_QUEUE_URL=your-queue-url
4
6
5
- # SQS Configuration
6
- SQS_QUEUE_URL=your-queue-url
7
+ # Advanced SQS Configuration (Optional - defaults shown)
8
+ POLL_INTERVAL=100ms # Time between SQS polls (default: 100ms)
9
+ MAX_MESSAGES=10 # Maximum messages per poll (default: 10, max: 10)
10
+ NUM_WORKERS=5 # Number of concurrent SQS polling workers (default: 5)
11
+ WS_BATCH_SIZE=100 # WebSocket message batch size (default: 100)
12
+ BUFFER_SIZE=1000 # Message channel buffer size (default: 1000)
13
+ MAX_RETRY_ATTEMPTS=5 # Maximum retry attempts for SQS operations (default: 5)
14
+ INITIAL_RETRY_DELAY=100ms # Initial retry delay for exponential backoff (default: 100ms)
15
+ MAX_RETRY_DELAY=5s # Maximum retry delay (default: 5s)
16
+ SQS_VISIBILITY_TIMEOUT=30 # Visibility timeout for received messages (default: 30 seconds)
17
+ SQS_WAIT_TIME=0 # SQS long polling wait time (default: 0, max: 20 seconds)
18
+
19
+ # Azure Cosmos DB Configuration (Optional)
20
+ COSMOS_ENDPOINT=https://your-cosmos-account.documents.azure.com:443/
21
+ COSMOS_KEY=your-cosmos-key
22
+ COSMOS_DATABASE=your-database-name
23
+ COSMOS_CONTAINER=your-container-name
24
+ COSMOS_BATCH_SIZE=100 # Number of messages to batch before writing to Cosmos
25
+ AZURE_REGION=eastus # Used for partitioning data in Cosmos DB
You can’t perform that action at this time.
0 commit comments