Suppose you launch a classifieds site for selling used cars. After a month, you find that the search by make and model lacks detailed filters (no year, mileage), moderators manually check every listing, and buyers complain they can't see nearby ads. Familiar? We build classifieds where geo search works in milliseconds, moderation automatically filters out 90% of junk, and monetization recovers development costs within six months. Our clients range from niche flea markets to federal classifieds with millions of listings. Classifieds development is a complex task requiring balanced solutions. In this article, we'll dissect how to build a classifieds site that doesn't lag with a million listings, moderates itself, and generates profit. We'll cover key technical decisions: dynamic attributes, geo search, messenger, moderation, and escrow.
What Matters When Developing a Classifieds Site?
Let's start with architecture. Each listing contains at minimum: transaction type, title, description, category, price, photos, contacts, location, and activity period. But the main feature is dynamic attributes. For cars – make, model, year; for real estate – area, floor, wall material. Attributes are stored flexibly:
CREATE TABLE category_attributes (
id INT PRIMARY KEY,
category_id INT,
name VARCHAR(255),
type ENUM('text','number','select','boolean'),
options JSONB,
required BOOLEAN,
searchable BOOLEAN
);
CREATE TABLE listing_attributes (
listing_id INT,
attribute_id INT,
value_text TEXT,
value_number NUMERIC,
value_boolean BOOLEAN
);
The listing form is built dynamically – category attributes are loaded via AJAX. Users fill only relevant fields, boosting conversion rates.
Why Geo Search Is a Key Feature
"Listings near me" is the primary scenario on classifieds. We implement it using PostGIS with a spatial index:
SELECT l.*, ST_Distance(l.location::geography, $1::geography) AS dist
FROM listings l
WHERE ST_DWithin(l.location::geography, $1::geography, 10000)
AND l.category_id = $2
AND l.status = 'active'
ORDER BY dist;
To speed things up, we add Redis caching for popular queries. Typical response time is <50 ms on 100,000 listings. Geo search with PostGIS gives a 10x speed improvement over a plain LIKE search on coordinates. This is especially critical for real estate and auto classifieds.
How We Organize Communication: Built-in Messenger
Buyers write to sellers directly within the listing – contacts are hidden until a deal is ready. The chat is tied to the listing (e.g., "Your listing 'iPhone 14'"). Stack: WebSocket (Laravel Reverb) + PostgreSQL for history + Redis for online statuses. Messages are stored in a partitioned table – no lag as data grows.
Choosing Moderation: Pre vs Post
| Criteria |
Pre-moderation |
Post-moderation |
| Time to publication |
Hours to days |
Instant |
| Quality |
High |
Low without automation |
| Fraud risk |
Low |
High |
| Moderator load |
Constant |
Report-based |
We combine both: pre-moderation for expensive categories (cars, real estate), post-moderation for cheap ones. Automation detects duplicates (same title + phone within 7 days), spam patterns, and prohibited items via an ML model. Automated moderation reduces operator load by up to 70%, saving up to 60% of the moderation budget.
What's Included in the Work
- Analytics: competitor audit, prototype, user flow.
- Design: responsive UI, 5 key screens.
- Frontend: React/Next.js or Vue/Nuxt (your choice).
- Backend: Laravel or Node.js, admin panel.
- Moderation: automatic filter + moderator cabinet.
- Monetization: payment gateway, promotion packages.
- Documentation: API (OpenAPI), admin manual.
- Training: 2 hours for your team.
- Warranty: 6 months of free bug fixes.
Our Process
- Analytics and prototype (1-2 weeks). Define MVP, draw User Story Mapping.
- Architecture design (1 week). ER model, API specification.
- Implementation (6-20 weeks). 2-week iterations, each sprint includes a demo.
- Testing (2 weeks). Load tests (k6), e2e (Cypress), security checks.
- Deployment and launch (1 week). CI/CD, monitoring (Sentry, Grafana).
Estimated Timelines
| Stage |
Time |
| MVP (listing, search, filters, photos, contacts) |
6-8 weeks |
| + messenger + geo search |
+4-6 weeks |
| + moderation + monetization |
+4-6 weeks |
| Full feature set with escrow |
5-6 months |
Pricing is determined individually after a briefing. Order a consultation – we'll evaluate your project in 1-2 days.
Transaction Security: Escrow Account
For expensive categories (cars, electronics), we implement "Safe Deal": the buyer pays to the platform's escrow account, the seller ships the item, and upon delivery confirmation, funds are released. Integration with YooKassa or Stripe; funds are held in a separate account, not mixed with operational flows.
Technologies We Use
PostGIS, Laravel, Vue, Nuxt, Redis, Docker, Nginx, WebSockets. All versions are current at the time of development.
Our engineers have experience in classifieds – 20+ launched projects. We work turnkey with a result guarantee. Get a free consultation on classifieds website development right now.
How to Avoid Discrepancies in Commission Calculations
Commission calculation is the most critical part where errors cost money. Rule one: never store commission as a derived value, always as a fact. At order creation, record: order amount, platform commission percentage at that moment, absolute commission value, and seller payout amount. If you change the rate tomorrow, historical orders remain with the previous numbers.
Consider a marketplace with 1,000 orders daily at $50 average order value. A 2% error in commission calculation — and you lose $1,000 every day without noticing. Our experience shows that at 500 orders/day, an incorrect payout model results in up to 15% loss of platform revenue. We have solved this for 50+ projects, from niche B2B to horizontal retail. The marketplace development process requires detailed architecture design for calculations and data isolation.
Commission Models (we use one of or combine)
| Model |
Principle |
Typical Scenario |
| Fixed percentage |
5% on each sale |
Simple trading venues |
| Differentiated by category |
Electronics 3%, Clothing 8% |
Marketplaces with different margins |
| Tiered by turnover |
Up to 100k — 10%, from 100k — 7% |
B2B platforms with volume discounts |
| Mixed |
% + fixed amount per transaction |
High-risk or expensive goods |
We use Stripe Connect as the baseline standard. Destination charges mode gives the platform control over payouts, including holds in disputes. Seller onboarding goes through Stripe Identity: KYC/AML verification is mandatory; until the seller is verified, payouts are frozen. A well-designed UX for this process is critical for seller conversion — in our projects we achieved 80% conversion at registration.
Escrow and Hold — Example Implementation
Money is charged from the buyer immediately and transferred to the seller with a delay of 7–14 days after delivery confirmation. This protects against fraud and allows holds in disputes. Implemented via capture_method: manual in Stripe and manual capture after deal completion. In one project, this mechanic reduced chargebacks by 40% in the first six months, saving the client $120,000 annually in dispute resolution costs.
What commission model suits your marketplace?
If average order value is high and margins thin — mixed model covers transaction costs. For B2B with volume discounts — tiered works best. Horizontal retail with 500 sellers and 200,000 SKUs typically uses differentiated rates by category. The wrong model can cost 3–5% of GMV, which directly hits your bottom line.
Why Multitenancy Architecture Is Critical for Data Isolation
The first step is choosing a multitenancy architecture. In shared-schema mode, all sellers are in the same tables with vendor_id. We always implement Row Level Security at the PostgreSQL level and global scopes in the ORM (Laravel, Rails, Django). This ensures a seller cannot see other sellers' orders even with a developer error. For enterprise projects with strict GDPR requirements, we use separate PostgreSQL schemas — stricter isolation, but cross-vendor analytics is more complex.
How to Handle Inventory Without Race Conditions
Two buyers simultaneously add the last item to their cart. Who gets it? Use optimistic locking when creating the order:
UPDATE inventory
SET reserved = reserved + 1
WHERE product_id = ? AND (quantity - reserved) >= 1
Atomic operation — the second query returns 0 affected rows and receives an "out of stock" error. Typical schema for high-traffic marketplaces. Optimistic locking outperforms pessimistic locking by 3x in high-concurrency scenarios (tested on projects with 50,000+ requests per minute).
Comparison of Catalog Approaches
| Aspect |
Unified Catalog (Amazon-like) |
Per-vendor Catalog (Avito-like) |
| Single product card |
Yes, product → offers |
No, each seller has their own |
| SEO |
Optimized per card |
Duplicates, but faster launch |
| Buyer UX |
Higher (price comparison) |
Lower (many duplicates) |
| Development complexity |
High (attribute moderation) |
Medium |
| Purchase conversion |
25% higher (1.25x better) |
Lower |
For a niche B2B marketplace, we often choose per-vendor — faster launch. For a horizontal retail marketplace with hundreds of sellers, unified catalog provides better UX.
Moderation Pipeline: Automated and Manual Verification
A marketplace is responsible for seller content. Typical issues: counterfeit goods, prohibited categories, price manipulation, fake reviews. We build a three-tier pipeline:
- Automatic checks on publication: required fields, category match, blacklist words, duplicates via image hash.
- AI classification (Amazon Rekognition or Vertex AI Vision) — detecting prohibited content and category identification.
- Manual review queue for flagged items.
State machine: draft → pending_review → active / rejected → suspended. Each transition is an event with reason and moderator. The seller receives a notification with a specific reason for rejection, not a generic "rules violation." Review verification is mandatory — only after confirmed purchase. Automatic detector flags a sudden spike in reviews from accounts with zero history.
Search and Recommendations
Marketplace search with multiple sellers and hundreds of thousands of products uses Elasticsearch or OpenSearch, not SQL LIKE. Vector search for semantics, faceted filtering via aggregations. Personalized feed based on collaborative filtering. A/B testing of ranking algorithms is mandatory — intuition is a poor advisor here. In one project, switching from PostgreSQL full-text to Elasticsearch reduced TTFB by 400ms and improved conversion by 8%.
Marketplace Development Process
Marketplace development is iterative. MVP: seller registration, product catalog, cart and checkout via Stripe Connect, basic moderation. After launch, real usage data determines priorities for subsequent iterations.
Typical order:
- MVP (3–4 months)
- Analytics and feedback
- First extended release (2–3 months)
- Scaling and optimization
Timeline and Budget
- Marketplace MVP (catalog, checkout, basic seller profiles): 3–5 months.
- Full-featured marketplace with moderation, advanced analytics, mobile app: 8–18 months.
- Adding marketplace functionality to an existing e-commerce: 2–5 months.
Development budget is calculated individually after requirements audit. A preliminary estimate can be provided during a free pre-project assessment.
What's Included
- Project documentation: architecture, data schemas, API specifications (OpenAPI).
- Access to repository, CI/CD, deployment documentation.
- Training for the client's team on platform operation.
- Technical support for the first month after launch.
We guarantee correctness of financial calculations and data confidentiality. Architectural principles from online marketplace practice confirmed by 10+ years of experience and 50+ successful projects.
Contact us for a marketplace architecture consultation — we provide a free preliminary assessment of your idea. Request an audit of your current platform to identify bottlenecks and propose optimization.