Server Management Commands
Thepaw servers commands allow you to create and manage servers for event-driven architectures.
Commands
servers list
List all servers in a project.Options
--project-id(required): The ID of the project
Examples
servers new
Create a new server.Options
--project-id(required): The ID of the project--name(required): Name of the server--type(required): Type of the serverasync+kafka: Apache Kafka serverasync+amqp: AMQP server (RabbitMQ, etc.)async+webhook: Webhook-based server
--description(required): Description of the server
Examples
Server Types
async+kafka
Apache Kafka servers for high-throughput event streaming:- Use cases: Event sourcing, log aggregation, real-time analytics
- Resources: Topics with read/write modes
- Best for: High volume, ordered events
async+amqp
AMQP servers (RabbitMQ, Azure Service Bus, etc.):- Use cases: Task queues, RPC, pub/sub messaging
- Resources: Exchanges, queues with various routing
- Best for: Reliable delivery, complex routing
async+webhook
Webhook-based servers for HTTP callbacks:- Use cases: Third-party integrations, notifications
- Resources: Endpoints for sending/receiving webhooks
- Best for: External system integration
Working with Servers
Server Architecture
Servers act as the transport layer for your messages:Server Resources
After creating a server, add resources to it:Best Practices
Server Organization
- Separate by Purpose: Different servers for different use cases
- Environment Parity: Same server types across environments
- Clear Naming: Include purpose in server name
Multi-Server Architecture
Server Selection Guide
Choose based on your requirements:| Requirement | Recommended Server |
|---|---|
| High throughput | async+kafka |
| Ordered events | async+kafka |
| Complex routing | async+amqp |
| Dead letter queues | async+amqp |
| External systems | async+webhook |
| Simple pub/sub | async+amqp or async+kafka |
Examples
E-commerce Event Architecture
Services Communication
IoT Data Pipeline
Server Configuration
While the CLI creates server definitions, actual connection details and configuration are managed through:- Environment-specific configuration files
- Generated code configuration
- Runtime environment variables
Related Commands
- Resources - Create topics, queues, and endpoints
- Messages - Define messages to send through servers
- Code Generation - Generate server connection code