apify-performance-tuning

Featured

Optimize Apify Actor performance: crawl speed, memory usage, concurrency, and proxy rotation. Use when Actors are slow, consuming too much memory, or being blocked by target sites. Trigger: "apify performance", "optimize apify actor", "apify slow", "crawlee concurrency", "apify memory tuning", "scraper performance".

AI & Automation 2,266 stars 315 forks Updated today 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

# Apify Performance Tuning ## Overview Optimize Apify Actors for speed, cost, and reliability. Covers Crawlee concurrency settings, memory profiling, proxy rotation strategies, request batching, and crawler selection for different workloads. ## Prerequisites - Existing Actor with measurable baseline performance - Understanding of `apify-sdk-patterns` - Access to Actor run stats in Apify Console ## Performance Baseline Measure before optimizing. Key metrics from run stats: ```typescript const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const run = await client.run('RUN_ID').get(); console.log({ totalDurationSecs: run.stats?.runTimeSecs, pagesPerMinute: (run.stats?.requestsFinished ?? 0) / ((run.stats?.runTimeSecs ?? 1) / 60), failedRequests: run.stats?.requestsFailed, retryRequests: run.stats?.requestsRetries, memoryAvgMb: run.stats?.memAvgBytes ? run.stats.memAvgBytes / 1e6 : null, memoryMaxMb: run.stats?.memMaxBytes ? run.stats.memMaxBytes / 1e6 : null, computeUnits: run.usage?.ACTOR_COMPUTE_UNITS, costUsd: run.usageTotalUsd, }); ``` ## Instructions ### Step 1: Choose the Right Crawler | Crawler | Speed | JS Rendering | Memory | Use When | |---------|-------|-------------|--------|----------| | `CheerioCrawler` | Very fast | No | Low (~50MB) | Static HTML, SSR pages | | `PlaywrightCrawler` | Moderate | Yes | High (~200MB/page) | SPAs, dynamic content | | `PuppeteerCrawler` | Moderate | Yes | High (~200MB/page) | Chromium-specific ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

apify-automation

Automate web scraping and data extraction with Apify -- run Actors, manage datasets, create reusable tasks, and retrieve crawl results through the Composio Apify integration.

62,564 Updated 1 weeks ago
ComposioHQ
AI & Automation Featured

apify-cost-tuning

Optimize Apify platform costs through memory tuning, compute unit management, and proxy budgeting. Use when analyzing Apify billing, reducing Actor run costs, or implementing usage monitoring and budget alerts. Trigger: "apify cost", "apify billing", "reduce apify costs", "apify pricing", "apify expensive", "apify budget", "compute units".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apify-sdk-patterns

Production-ready patterns for Apify SDK and apify-client in TypeScript. Use when building Actors with Crawlee, managing datasets/KV stores, or implementing robust client wrappers with retry and validation. Trigger: "apify SDK patterns", "apify best practices", "apify client wrapper", "crawlee patterns", "idiomatic apify".

2,266 Updated today
jeremylongshore
AI & Automation Solid

apify-actor-development

Important: Before you begin, fill in the generatedBy property in the meta section of .actor/actor.json. Replace it with the tool and model you're currently using, such as "Claude Code with Claude Sonnet 4.5". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.

39,227 Updated today
sickn33
AI & Automation Featured

apify-core-workflow-a

Build a complete web scraping Actor with Crawlee and deploy to Apify. Use when implementing end-to-end scraping: input schema, crawler, data extraction, dataset output, and platform deployment. Trigger: "apify scrape website", "build apify actor", "crawlee scraper", "apify main workflow".

2,266 Updated today
jeremylongshore