Skip to main content
Fusioncat is currently in its alpha stage. The main API server is located at: https://api.staging.fusioncatalyst.io/Please note that breaking changes and bugs are to be expected, as the product is still under active development.

Resource Management Commands

The paw resources commands allow you to create and manage resources within servers, such as topics, queues, exchanges, and endpoints.

Commands

resources list

List all resources in a server.

Options

  • --server-id (required): The ID of the server

Examples

resources new

Create a new resource.

Options

  • --server-id (required): The ID of the server
  • --name (required): Name of the resource
  • --type (required): Type of the resource
    • topic: Kafka topic or similar
    • exchange: AMQP exchange
    • queue: Message queue
    • table: Data table
    • endpoint: HTTP endpoint
  • --mode (required): Access mode for the resource
    • read: Read-only access
    • write: Write-only access
    • readwrite: Full read/write access
    • bind: Binding mode (for AMQP)
  • --description: Description of the resource

Examples

Resource Types by Server

Kafka Server Resources

Topics - Event streams:

AMQP Server Resources

Exchanges - Message routing:
Queues - Message storage:

Webhook Server Resources

Endpoints - HTTP callbacks:

Access Modes

read

  • Can consume/receive from the resource
  • For queues: dequeue messages
  • For topics: subscribe and consume
  • For endpoints: receive webhooks

write

  • Can produce/send to the resource
  • For queues: enqueue messages
  • For topics: publish events
  • For endpoints: send webhooks

readwrite

  • Full access to both read and write
  • Most common for internal services

bind

  • Special mode for AMQP
  • Bind queues to exchanges
  • Set up routing rules

Best Practices

Naming Conventions

  1. Topics: Use dot notation - domain.entity.action
  2. Queues: Use descriptive names with purpose
  3. Endpoints: Include action and target

Resource Organization

Group related resources:

Access Control

Principle of least privilege:

Examples

Event-Driven Microservices

Task Queue System

Webhook Integration

Generated Code

Resources generate connection code:
  • Servers - Create servers to contain resources
  • Messages - Define messages to send through resources
  • Code Generation - Generate resource handling code