Skip to content
Introducing AI OS for Business & School — our most powerful products yet.Explore →
App Corp iconApp Corp
AI & ML
AI
Data Architecture
Real-Time

AI-Ready Data Architecture for Real-Time Marketplaces

How we structured Kismaa's data layer for future AI matching, recommendations, — while building the real-time platform today

AE

App Corp Engineering

Editorial Team

September 20, 202613 mins read
13 mins readRead time
324Words
Sep 2026Published
App Corp Engineering·Editorial Team

Every real-time platform generates massive amounts of behavioral data — session patterns, matching decisions, user preferences, engagement signals. Most platforms let this data rot in transactional databases. Kismaa was designed from day one to capture this data in a structure that enables AI-driven matching, personalised recommendations, and predictive analytics — without compromising the real-time performance of the current platform.

The Behavioral Data Model

We extended the session data model with a behavioral events table: every user action (browse, search, filter, book, rate) and every psychic action (accept, reject, start session, end session) is captured as a structured event with timestamp, context, and metadata. The events are stored in PostgreSQL with a JSONB payload column for flexible attributes. This gives us queryable behavioral data without impacting the real-time session performance — events are written asynchronously via a queue.

The Matching Feature Store

We built a lightweight feature store for matching: user preferences (language, specialty interests, session history), psychic performance metrics (acceptance rate, average rating, session completion rate), and compatibility scores (derived from historical matching outcomes). These features are pre-computed nightly and stored in a Redis cache for fast lookup during real-time matching. The matching engine queries the feature store during match scoring, not the transactional database.

Pro Tip

Pre-compute matching features nightly and cache in Redis. Real-time feature computation during matching adds latency that breaks the sub-3-second requirement.

The Recommendation Pipeline

The recommendation system uses collaborative filtering: users who booked practitioner X also booked practitioner Y. We compute similarity scores between practitioners based on user booking patterns and session ratings. The recommendations are pre-computed and cached, then served via a simple API endpoint. The system currently suggests 5 practitioners per user, with a 23% click-through rate. This will improve as more behavioral data accumulates.

The AI Matching Foundation

The current matching engine uses rule-based scoring (availability, specialty, rating). The behavioral data we're capturing enables a future upgrade to AI-driven matching: a model that learns from successful sessions (high ratings, long duration, repeat bookings) to predict match quality. We've structured the data pipeline so this upgrade is a model swap, not an architecture change. The events, features, and scoring infrastructure are all AI-ready.

Conclusion

AI-ready data architecture isn't about building AI features today — it's about capturing the right data in the right structure so AI features are possible tomorrow. Kismaa's behavioral event model, feature store, and recommendation pipeline are designed to evolve from rule-based to AI-driven without rearchitecting the platform. The investment is in data structure, not algorithms.

Key Takeaways

  • Behavioral events with JSONB payloads capture rich user data without impacting real-time performance
  • Pre-computed matching features in Redis enable fast lookup during real-time session matching
  • Collaborative filtering recommendations achieve 23% click-through rate with room to improve
  • AI-ready architecture means model swaps, not architecture changes — structure data for tomorrow's algorithms

We value your privacy

We use strictly necessary cookies to keep our site secure and functional. With your consent, we also use performance cookies to understand how you interact with our site, and functional cookies to remember your preferences. Read our full Cookie Policy