Integration Patterns

Design REST and GraphQL APIs with retries and standardized error responses.

18|2|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/Lobbi-Docs/claude --skill integration-patterns-lobbi-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Integration Patterns
Source: https://github.com/Lobbi-Docs/claude/tree/main/team-accelerator/skills/integration-patterns
Command: npx skills add https://github.com/Lobbi-Docs/claude --skill integration-patterns-lobbi-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps design and implement robust integration patterns for connecting services, databases, and external systems, reducing integration complexity and outages.

Core Features & Use Cases

  • REST API Design: Resource-oriented APIs with pagination and filtering.
  • GraphQL & Event-Driven: Efficient data fetching and event-based communication.
  • Database Integration: Connection management and dataflow patterns.
  • Use Case: Build a resilient API gateway that orchestrates multiple microservices with retries.

Quick Start

Start by designing a new REST endpoint for a user service and generate a plan for dataflow between services.

Frequently Asked Questions about Integration Patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a REST API with proper pagination and filtering?

REST API design uses resource-oriented endpoints with pagination parameters (limit/offset or page/size) and filter query strings to manage large datasets. Implement standardized request validation, authentication checks, and consistent error responses across all endpoints to ensure reliability and usability at scale.

What retry strategies should I use for resilient service communication?

Retry strategies balance exponential backoff, jitter, and maximum retry counts to handle transient failures without overwhelming downstream services. Combine with circuit breakers and timeouts to prevent cascading outages when integrating multiple microservices or external APIs.

How do I choose between REST and GraphQL for API integration?

REST provides straightforward resource-oriented design and caching; GraphQL enables efficient, client-specified data fetching with a single endpoint. Choose REST for simple, cacheable resources; GraphQL when clients need flexible, nested data retrieval from complex service landscapes.

What is event-driven architecture and when should I use webhooks?

Event-driven architecture decouples services by publishing events that other systems consume asynchronously. Webhooks are HTTP callbacks that notify external systems of events in real-time, replacing polling and enabling responsive, loosely coupled integrations between services and databases.

How do I manage database connections across multiple services?

Database integration patterns include connection pooling to reuse connections, read replicas for scaling queries, and standardized dataflow patterns that minimize latency. Apply rate limiting and timeout policies to prevent connection exhaustion in distributed architectures.

What error handling and rate limiting should an API gateway implement?

API gateways enforce standardized error responses, request validation, and rate limiting per client or endpoint to protect backend services. Combine with authentication, controller routing, and retry logic to orchestrate multiple microservices reliably and transparently.