Getting Started with Products
A Product in Ductape is a container for everything your backend needs.
It starts with an integration. You create a Product and connect one or more Apps to it. You can then call the endpoints from those Apps like functions in your code.
But it doesn't stop there. You can also add other backend components, like databases, notifications, jobs, and more, and use them the same way, as callable functions within your logic.
Each Product can include:
- Apps: Integrations with third-party or internal services.
- Environments: Contexts like development, staging, or production.
- Databases: Connect and manage relational or NoSQL databases.
- Notifications: Send push, email, callback, or SMS notifications.
- Jobs: Define and schedule background or recurring tasks.
- Caches: Store and reuse results of expensive operations.
- Features: Orchestrate complex workflows and business logic.
- Quotas: Share load between providers.
- Fallbacks: Automatically switch providers if one fails.
- Message Brokers: Integrate with Kafka, RabbitMQ, SQS, etc.
- Storage: Manage files and data storage.
- Healthchecks: Monitor system health and responsiveness.
A Product lets you bring all these elements together and orchestrate them to build reliable, reusable backend systems
Creating a Product
Example:
const product = await ductape.product.create({
name: "Payments Service",
tag: "payments_service",
description: "Handles all payments processing"
});