# Overview of Integration Methods

## Overview

Below are the most common integration methods with API-first tools such as Open Loyalty:

* **API Gateway:** A single entry point for managing, securing, and routing API requests to the appropriate services, simplifying client-side integrations
* **Event-driven Architecture:** Leverage APIs for event publishing and consumption, allowing systems to react asynchronously to events and promoting decoupling
* **API Composition:** Combine multiple API calls into a single, aggregated response, reducing client-side complexity and optimizing performance
* **API Orchestration:** Coordinate and manage multiple API requests in a predefined sequence or workflow, simplifying complex integrations
* **API Choreography:** Decentralize coordination by enabling services to publish and subscribe to events, facilitating loose coupling and greater flexibility

## Primary Methods of Integration with Open Loyalty

### API

API Integration uses RESTful APIs to enable synchronous communication between systems, allowing for real-time data retrieval and processing.

{% hint style="info" %}
**When to use API Integration:**

* When you need real-time access to data or immediate processing of requests,
* When you want to retrieve specific data on demand or control the data being fetched,
* When you want to integrate with customer-facing applications (ie. Mobile App, eCommerce, POS)
  {% endhint %}

### Webhooks

Webhooks leverage user-defined HTTP callbacks for asynchronous event-driven communication, providing near real-time updates without continuous polling.

{% hint style="info" %}
**When to use Webhook Integration:**

* When you want to receive updates automatically\
  as events occur in Open Loyalty,
* When you need near real-time updates without the resources overhead of continuous polling,
* When you need to notify another system about important business events from Open Loyalty (ie. send a message when Member reaches a Tier)
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/technical-guide/integration/overview-of-integration-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
