https://github.com/muhamedayoub/msgraph-batch-toolkit
Efficient batch processing utility for Microsoft Graph API with automatic retries and rate limiting
https://github.com/muhamedayoub/msgraph-batch-toolkit
active-directory api-client entra-id microsoft node rate-limiting typescript
Last synced: 2 months ago
JSON representation
Efficient batch processing utility for Microsoft Graph API with automatic retries and rate limiting
- Host: GitHub
- URL: https://github.com/muhamedayoub/msgraph-batch-toolkit
- Owner: MuhamedAyoub
- License: mit
- Created: 2025-01-02T01:52:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-03T14:00:03.000Z (over 1 year ago)
- Last Synced: 2025-08-15T19:44:05.732Z (10 months ago)
- Topics: active-directory, api-client, entra-id, microsoft, node, rate-limiting, typescript
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MS Graph Batch Processor
A utility library for batch processing Microsoft Graph API requests with built-in retry logic, rate limiting, and logging.
## Installation
```bash
pnpm install
```
## Usage
```typescript
import { Client } from '@microsoft/microsoft-graph-client';
const client = Client.init({
// your graph client config
});
const processor = new MsGraphBatchProcessor(client, {
batchSize: 20,
concurrency: 2,
});
const requests = [
// your requests
];
const results = await processor.processBatch(requests, (item) => ({
method: 'GET',
url: `/users/${item.id}`,
}));
```
## License
MIT