Context
Targeted modernization of Placester, a real estate platform for agents and brokerages, improved revenue reporting, site editing, and CRM/sales, trial, and e-commerce workflows without a product rewrite.
The work combined measured PHP and SQL performance improvements with clearer sales processes, configurable lists, resilient CRM workflows, and a cross-stack security review.
Challenge
Slow dashboards and editing disrupted daily operations. Fragmented sales workflows made business rules harder to understand.
A proposed PHP rewrite would compete with more pressing business priorities. The work needed to address measured bottlenecks while preserving engineering capacity.
Approach
Clearer revenue rules simplified CRM/sales, trial, and e-commerce workflows. Sales dashboards and configurable lists support Opportunities, Quotes, and Prospects.
Moved MRR/Churn ledger calculations out of the request path into precomputed MySQL snapshots refreshed hourly. This preserved reporting semantics while trading real-time freshness for faster responses, with Sales accepting the one-hour reporting lag.
For Site Edit, investigated slow requests across the browser, Blueprint, and WordPress. Browser timing breakdowns and correlated application/access logs helped distinguish server-side processing delays from connection setup, transfer time, and client-side waiting.
Core CRM workflows use durable events, idempotency, reconciliation, observability, feature flags, and recovery controls. Security work included a safe Next.js upgrade.
Workflow
- 01
Measure the bottlenecks
Distinguish PHP server timing from client-observed request duration. Use uncached API checks, browser Network/HAR timings, and correlated application/access logs; revalidate completed operations after deployment.
- 02
Improve daily operations
Deliver dashboard improvements, Sales reporting, and configurable list views.
- 03
Simplify revenue workflows
Clarify business rules and the relationships between CRM/sales, trial, and e-commerce flows; define canonical identities and contracts.
- 04
Reconcile and recover
Use idempotency, durable event delivery, observability, and recovery controls.
- 05
Observe and recover
Use observability, reconciliation, feature flags, and recovery controls to diagnose failures and protect workflow continuity.
Capabilities
Measured dashboard and editing performance improvements.
Sales dashboards and searchable, shareable Custom List Views.
Clearer CRM/sales, trial, and e-commerce workflows and business rules.
Cross-stack security review and a safe Next.js update.
Results
| Operation | Before | After | Improvement | Measurement context |
|---|---|---|---|---|
| THAW MRR request | ~151 s | 1.3–1.4 s | >99% less time | Cache-bypassed tests: local application connected to the production database |
| THAW Churn request | ~161 s | ~3.3 s | ~98% less time | Same cache-bypassed test context |
| Site Edit Discard/Revert | >5 min | ~18 s | ≥94% less time | Subsequent production revalidation |
| Site Edit Live Chat save | 159–170 s | 634 ms | >250× faster | Subsequent production revalidation |
The optimized THAW path was subsequently deployed to production.
A separate five-run production API check with nocache=1 recorded MRR client-observed request duration at approximately 0.57 s and Churn at 0.84–1.21 s.
These are separate measurements from the initial local-application comparison.
Measurement and instrumentation
For THAW, distinguished the PHP query_time reported in API responses from client-observed request duration.
Production checks bypassed the application cache with nocache=1 and recorded repeated API requests.
For Site Edit, inspected browser Network/HAR timing breakdowns and correlated Nginx, Blueprint, and WordPress logs in Grafana Loki.
The initial Live Chat HAR captured requests lasting 164–167 s, with more than 99.9% of that time spent waiting for the first application byte.
This located the delay in the server-side request path rather than DNS, TLS, upload, or download.
Correlated Discard logs also showed that the operation continued on the server after the interface reported a timeout.
Subsequent production revalidation recorded the improved completion times and checked operation correctness, including that no accepted draft changes remained after Discard.
These figures describe recorded requests and operation checks.
They are not fleet-wide averages, percentile latency measurements, or claims that every page or Site Edit action improved by the same factor.
Targeted improvements to the existing PHP product addressed performance bottlenecks without a rewrite, preserving engineering resources for higher-priority business work.
Delivered Sales dashboards plus Custom List Views for Opportunities, Quotes, and Prospects, supporting organization, search, sharing, and daily operations.
Reviewed PHP, Next.js, Node.js, Brotli, and Pillow.
Delivered a safe Next.js update.
Findings brought visibility to an exposure subsequently confirmed across 13 of 16 production Node.js services and led to 13 remediation PRs.
Decisions & trade-offs
Trade-offs
A clearer revenue model simplifies CRM/sales, trial, and e-commerce.
Dual-path coexistence, idempotency, and reconciliation preserve continuity instead of a big-bang migration.
Targeted PHP improvements removed measured bottlenecks without a rewrite.
Engineering capacity remained available for higher-priority business work.
Hourly materialized views traded real-time data freshness for dramatically faster MRR and Churn queries; the one-hour lag was acceptable to Sales.
Problems solved
Reduced measured latency in revenue dashboards and editing workflows.
Made CRM/sales, trial, and e-commerce workflows easier to understand, alongside Sales dashboards and configurable list views.
Made retries, event correlation, discrepancies, and recovery behavior explicit in core CRM workflows.
Connected cross-stack security findings to a documented remediation plan.
