A real estate search platform has two very different jobs. On the surface, buyers expect fast filters, useful maps and accurate property pages. Behind the interface, the system has to keep listing data fresh, deal with incomplete records and respect the rules governing what can be published. A beautiful interface cannot compensate for a house that is still advertised as available after it has been sold. This guide describes a proposed architecture for a custom real estate website in the US or Canada, not a case study or a claim of a completed MLS integration.
MLS, IDX and RESO: start with the data agreement
An MLS (Multiple Listing Service) is a system through which participating real estate professionals share listing information. IDX (Internet Data Exchange) is a framework for authorized public display of certain MLS listings. RESO Web API is a technical standard for exchanging real estate data, commonly using OData. It standardizes the interface and data vocabulary; it does not grant access to listings or make every field available from every provider.
Before writing code, confirm the MLS or licensed provider, API credentials and sandbox, available fields, refresh obligations, display attribution, photo rights, retention and deletion rules. Ask whether local database replication is allowed. If it is not, design a permitted live-query or provider-hosted solution rather than silently copying the feed.
A simple architecture with explicit responsibilities
Where replication is authorized, a practical starting point is Next.js for the public application, a TypeScript backend using Node.js and NestJS, a separate synchronization worker, and PostgreSQL with PostGIS. The flow is MLS API → provider adapter → validation and mapping → database → search API → Next.js. The public API only exposes permitted fields; the worker keeps credentials and provider-specific behavior on the server.
| Component | Responsibility |
|---|---|
| Next.js | Search interface, property pages, server rendering and metadata |
| Node.js / NestJS | API contracts, validation, business rules and access control |
| Synchronization worker | Import, incremental updates, retries and reconciliation |
| PostgreSQL / PostGIS | Relational data, constraints, indexed filters and spatial queries |
| Redis / BullMQ (optional) | Caching or durable background job coordination when justified |
A modular backend with a worker is often simpler than a fleet of microservices. Separate the data ingestion workload from public search so that an import does not block buyers from browsing. Add infrastructure only when measured traffic, synchronization volume or operational requirements justify it.
A data model that distinguishes properties from listings
A physical property and a listing are not the same entity. A property may be advertised multiple times, by different agents or through different data sources. I would model source listings with a unique pair of provider ID and external listing key, normalized status, price, currency, address, coordinates, source modification timestamp and last successful synchronization. Media and agents can be separate related tables where useful. Keep source identifiers so every update can be traced back to the provider.
Use database constraints for identity and integrity, and do not merge separate listings merely because their street addresses look similar. If grouping by physical property is required, make that a separate, auditable process. Store only authorized data; raw responses, price history and photos may have different retention or display permissions.
Reliable synchronization: the difficult part
Begin with a paginated initial import. Then fetch changes through the provider-supported incremental mechanism. In a timestamp-based feed, ModificationTimestamp is commonly used; some providers also expose event-based replication that communicates deletions. Follow the provider’s continuation links and documented ordering rather than inventing a pagination scheme.
For timestamp polling, persist the last committed checkpoint, handle equal timestamps with a stable tie-breaker when supported, and use an overlap window when necessary. Write each batch idempotently using a unique constraint and an upsert. Reject older versions so a delayed response cannot overwrite a newer listing. Advance the checkpoint only after the corresponding data is durably stored. Prevent overlapping jobs for the same source or coordinate their ownership.
Use bounded retries with backoff and jitter for temporary failures, respect rate limits, and alert on authorization errors. A failed request is not evidence that a listing was deleted. Withdrawn, removed or no-longer-authorized records need a provider-supported removal mechanism and periodic reconciliation. Refresh frequency, outage behavior and stale-listing visibility must follow the actual data agreement.
Fast filtering and map search with PostgreSQL
For a first version, keep deterministic filters in PostgreSQL: price range, bedrooms, property type, status and geographic area. Build parameterized queries from a validated API contract. Select indexes based on observed filters and sort order; use EXPLAIN ANALYZE against representative data to verify actual execution behavior. Return a bounded result set with stable pagination, using a unique tie-breaker such as the internal listing ID.
PostGIS adds spatial operations. A geography point in SRID 4326 can support radius searches with ST_DWithin, where distance is measured in meters, and a suitable GiST index helps narrow the candidates. Map viewport queries can use an indexed geometry column and spatial predicates. Validate longitude and latitude, limit the search area or response size, and cluster markers rather than sending every matching property to the browser.
PostgreSQL full-text search may be sufficient for descriptions and addresses; test address matching separately because abbreviations and partial street names behave differently from ordinary prose. Redis or an external search engine is an optimization, not a starting requirement. If caches are introduced, enforce the same listing visibility rules and invalidate stale results when a listing changes or loses permission to be displayed.
Frontend, SEO and trustworthy listing pages
Next.js can render authorized listing details on the server and support shareable search URLs. A good interface keeps filters, map bounds, pagination and URL state consistent, cancels stale requests and exposes loading, empty and failure states. Property pages need fast image delivery, canonical URLs and relevant metadata; search filter combinations should not generate an uncontrolled number of indexable pages.
The frontend must never receive MLS credentials or unpublished fields. When a listing is removed or no longer eligible for display, update the public page, search results, sitemap and cached copies according to the provider agreement. A saved URL is not a reason to retain content indefinitely.
Production monitoring and acceptance criteria
Before launch, test pagination boundaries, duplicate records, out-of-order updates, missing coordinates, status transitions, access revocation, rate limits and API outages. Monitor time since the last successful sync, synchronization lag, rejected records, stale listings, public API error rate and search latency at p95. Use structured logs without secrets, tested database backups and a documented recovery procedure. Set measurable freshness and latency targets with the client rather than promising a number without knowing the feed and workload.
What to build first
A sensible MVP is a single licensed source, an authorized import or query path, a normalized model, reliable synchronization where applicable, public listing pages, essential filters, map search and a basic agent inquiry form. Add saved searches, notifications, CRM workflows, semantic search or an AI assistant after the core data pipeline is trustworthy. Any AI use of listing data must be explicitly permitted; AI should never invent prices, availability or property facts.
If you are planning a custom real estate website, the most useful first step is a technical discovery: identify the MLS provider, confirm permissions, inspect sample responses and agree on search requirements. From there, the implementation can be scoped as a concrete data flow with acceptance criteria instead of a vague promise to build a property portal. Discuss your project at https://zavada.dev/contacts.
Technical references
RESO Web API: https://www.reso.org/reso-web-api/ | RESO Web API FAQ: https://www.reso.org/knowledge-base/reso-web-api-faq/ | NAR IDX policy overview: https://www.nar.realtor/about-nar/policies/internet-data-exchange-idx
PostgreSQL EXPLAIN: https://www.postgresql.org/docs/current/using-explain.html | PostgreSQL INSERT and ON CONFLICT: https://www.postgresql.org/docs/current/sql-insert.html | PostGIS ST_DWithin: https://postgis.net/docs/ST_DWithin.html
Need a developer for the long run?
I can start now and work with you for months or years, not hand off after two weeks. Send me a message and we will talk through your project, requirements and next steps.