---
title: Intermediate Storage vs Direct Log API Calls
description: Should you use intermediate storage or call Log API directly? Learn why asynchronous logging is recommended for reliability.
---

# Do I need intermediate storage or can I call Log API directly?

**Use intermediate storage for production deployments**—asynchronous logging via [Pickup Service][] provides reliability, scalability, and decoupling. Direct [Log API][] calls are **not recommended** except for simple testing.

## Why Intermediate Storage (Asynchronous Logging)

### :fa-circle-check: Reliability

If :Nodinite: Web Server is temporarily unavailable (maintenance, network issues, restarts), your integrations **continue running**—logs queue up in intermediate storage, Pickup Service fetches them when :Nodinite: returns.

**Direct API:** Integration fails or loses log events if :Nodinite: is unavailable.

### :fa-circle-check: Performance

Writing to intermediate storage ([Azure Service Bus][] queue, file share, database) is **fast and non-blocking**—your integration continues processing without waiting for :Nodinite: HTTP responses.

**Direct API:** Every log call waits for HTTP response—adds latency to integration processing (50-200ms per log event).

### :fa-circle-check: Scalability

Pickup Service handles **burst traffic**—1,000 integrations can write 500K logs/day to intermediate storage, Pickup Service ingests at controlled rate without overloading :Nodinite:.

**Direct API:** High-volume logging can overwhelm the :Nodinite: Log API with simultaneous connections.

### :fa-circle-check: Decoupling

Your integrations don't need network connectivity to :Nodinite: Web Server—just write to local file share, queue, or database. Pickup Service (running on :Nodinite: server or nearby) fetches logs asynchronously.

**Direct API:** Every integration server needs firewall rules, authentication, and network access to :Nodinite:. See the [firewall settings for Custom Logging][Custom Logging firewall] for the ports on each hop.

## Supported Intermediate Storage Options

[Pickup Service][] fetches logs from:

* :fa-inbox: **Azure Service Bus Queues** - Cloud-native, highly available
* :fa-inbox: **Azure Storage Queues** - Simple, cost-effective
* :fa-folder: **File Shares** - SMB/CIFS network shares, local folders
* :fa-database: **Databases** - SQL Server, PostgreSQL, MySQL tables
* :fab fa-windows: **MSMQ** - Windows Message Queuing (legacy)
* :fa-inbox: **RabbitMQ** - Open-source message broker
* :fab fa-aws: **Amazon SQS** - AWS queue service

**Recommended:** Azure Service Bus for cloud deployments, file shares for on-premises simplicity.

## When Direct Log API Calls Are Acceptable

Use direct [Log API][] calls **only for**:

* **Development/testing** - Quick prototyping, proof-of-concept
* **Low-volume scenarios** - <100 log events/day, non-critical logging
* **Synchronous requirements** - Must confirm :Nodinite: received log before continuing (rare)

**Not recommended for production** due to reliability and performance trade-offs.

## Asynchronous Logging Architecture

<div class="mermaid">
graph LR
    subgraph "Your Integration"
        A[Integration Logic] --> B[Write JSON Log Event]
        B --> C[Intermediate Storage]
    end
    subgraph "Nodinite Server"
        D[Pickup Service] --> E[Log API]
        C --> D
    end
</div>

1. Integration writes a [JSON Log Event][JSON Log Event Format] to intermediate storage **(fast, reliable)**
2. Pickup Service asynchronously fetches logs **(decoupled, scalable)**
3. Log API ingests into :Nodinite: **(controlled rate, no integration impact)**

**Read more:** [Asynchronous Logging][] architecture and benefits.

---

**Related Topics:**  
[Pickup Service Overview][]  
[Asynchronous Logging][]  
[JSON Log Event Format][]  

**See all FAQs:** [Troubleshooting Overview][]

## :fa-hand-point-right: Next Steps

:fa-book: [Back to Custom Logging Overview][Custom Logging Overview]  

## :fa-link-horizontal: Related Topics

* :fa-truck-pickup: [Log Asynchronously and Survive Updates][]  
* :fa-question-circle: [Troubleshooting Overview][Troubleshooting]  
* :fa-coins: [Azure Costs for Blob Storage and Event Hub][]  

[Asynchronous Logging]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md
[Azure Costs for Blob Storage and Event Hub]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Azure%20Costs%20for%20Blob%20Storage%20and%20Event%20Hub.md
[Azure Service Bus]:{ndr}/Logging%20and%20Monitoring/Message%20Queueing/Features/Azure%20Service%20Bus%20Queues/Monitoring%20Azure%20Service%20Bus%20Queue.md
[Custom Logging firewall]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Overview.md#fa-shield-check-what-firewall-settings-are-required
[Custom Logging Overview]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Overview.md
[JSON Log Event Format]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Asynchronously and Survive Updates]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Log%20Asynchronously%20and%20Survive%20Updates.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Pickup Service Overview]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Overview.md
[Troubleshooting Overview]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Overview.md