---
title: "xConnect Collection service"
slug: "xconnect-collection-service"
abstract: "Overview of Sitecore xConnect Collection supported infrastructure, references, scaling, and privacy and security."
---
# xConnect Collection service

The xConnect Collection service performs the following functions:

- Receives contacts and interactions, either individually or in a batch.
- Allows reading of contact and interaction data by ID or identifier.
- Supports data extraction.

The xConnect Collection service can be accessed using the xConnect Client API or another API that consumes the oData service.

## Supported infrastructure

You can host the xConnect Collection service on:

- IIS
- [Azure App Service](https://azure.microsoft.com/en-us/services/app-service/)

Refer to the [Sitecore compatibility table](https://kb.sitecore.net/articles/087164) for compatible versions.

## Reference structure

The xConnect Collection service has its place in the Sitecore reference structure. It can be referenced by other roles, and it can also reference other roles.

![Illustration showing the xConnect Collection service's place in the Sitecore reference structure.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/104/platform-administration-and-architecture/images/xconnect-collection.png)

### Referenced by

The xConnect Collection service is referenced by the following roles:

- [Content Delivery](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/content-delivery--cd-.html "Content Delivery (CD)")

### References

The xConnect Collection service references the following roles:

#### Storage roles

| Role name | Connection string name | Port | Type | Notes |
| --- | --- | --- | --- | --- |
| [xDB Collection database](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/xdb-collection-database.html) | collection | 1433 | SQL | The port number depends on your SQL Server configuration. |
| [Marketing Automation database](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/marketing-automation-database.html) | xdb.marketingautomation | 1433 | SQL | The port number depends on your SQL Server configuration. |
| [xDB Processing Pools database](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/xdb-processing-pools-database.html) | xdb.processing.pools | 1433 | SQL | The port number depends on your SQL Server configuration. |
| [Message Bus](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/message-bus.html) | messaging | 1433 | SQL | The port number depends on your SQL Server configuration. If you install Sitecore using SIF, SQL is the default provider. |
|  |  | 443 | Azure Service Bus | If you install Sitecore on Azure, Azure Service Bus is the default provider. Azure Service Bus is available in 9.2 and later. |

## Privacy and security

The xConnect Collection Service handles personal data in the following ways:

- Reads and writes contact and interaction data from and to the [xDB Collection database](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/xdb-collection-database.html "xDB Collection database").
- Sends and receives contact and interaction data over the network to authorized clients such as [Content Management](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/content-management--cm-.html "Content Management (CM)").

> [!note]
> Any client application with access to xConnect has access to personal data, even if the application does not access or use personal data.

### Assumptions

- All personal data written to and returned from the xConnect Collection service has valid and active data subject consent.
- If required, client applications reading or writing data have explicit consent to do so.