appfolio performance tuning | sed 's/\b(.)/\u\1/g'
Performance Strategies
| Strategy | Savings | Implementation | |----------|---------|---------------| | Response caching | 60-80% fewer API calls | Cache properties/units (5 min TTL) | | Parallel requests | 3-5x faster dashboard load | Promise.all for independent endpoints | | Incremental sync | 70% less data transfer | Track last_modified timestamps |
Parallel Dashboard Fetch
async function loadDashboard() {
const [properties, tenants, leases, units] = await Promise.all([
client.http.get("/properties"),
client.http.get("/tenants"),
client.http.get("/leases"),
client.http.get("/units"),
]);
return { properties: properties.data, tenants: tenants.data, leases: leases.data, units: units.data };
}