maintainx-performance-tuning

Featured

Optimize MaintainX API integration performance. Use when experiencing slow API responses, optimizing data fetching, or improving integration throughput with MaintainX. Trigger with phrases like "maintainx performance", "maintainx slow", "optimize maintainx", "maintainx caching", "maintainx faster".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MaintainX Performance Tuning ## Overview Optimize MaintainX integration performance with caching, connection pooling, efficient pagination, and request deduplication. ## Prerequisites - MaintainX integration working - Node.js 18+ - Redis (recommended for production caching) - Performance baseline measurements ## Instructions ### Step 1: Connection Pooling with Keep-Alive ```typescript // src/performance/pooled-client.ts import axios from 'axios'; import http from 'node:http'; import https from 'node:https'; // Reuse TCP connections instead of opening new ones per request const httpAgent = new http.Agent({ keepAlive: true, maxSockets: 10 }); const httpsAgent = new https.Agent({ keepAlive: true, maxSockets: 10 }); const client = axios.create({ baseURL: 'https://api.getmaintainx.com/v1', headers: { Authorization: `Bearer ${process.env.MAINTAINX_API_KEY}`, 'Content-Type': 'application/json', }, httpAgent, httpsAgent, timeout: 30_000, }); // Benefit: Eliminates TCP handshake + TLS negotiation per request // Typical improvement: 100-200ms saved per request ``` ### Step 2: Multi-Level Caching ```typescript // src/performance/cache.ts interface CacheLayer<T> { get(key: string): Promise<T | undefined>; set(key: string, value: T, ttlMs: number): Promise<void>; } // L1: In-memory (fastest, per-process) class MemoryCache<T> implements CacheLayer<T> { private store = new Map<string, { value: T; expiresAt: number }>(); async get(key: string) { ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category