Voice of the Customer at Cloudflare Immerse Qatar: How Rafeeq Secures and Accelerates with Cloudflare
Notes from the Voice of the Customer stage at Cloudflare Immerse Qatar — and a behind-the-scenes look at how Rafeeq uses Cloudflare for security, WAF, bot management, Zero Trust, and edge caching.

Last week I had the privilege of joining the Voice of the Customer session at Cloudflare Immerse Qatar — the first time Cloudflare has brought its flagship Immerse event to Doha. The session was moderated by Özgür Danışman, CISSP, Director of Customer Engineering for META at Cloudflare, and I shared the stage as CTO of Rafeeq alongside regional leaders from Qatar Airways, Public Sector Mobility, and Doha Oasis.

The theme of the day was a faster, safer, and more resilient internet — Zero Trust architecture, AI security, and the operational reality of defending and accelerating a high-traffic consumer platform in the Gulf. This post is the longer version of what I shared on stage: how Rafeeq actually uses Cloudflare day to day, and why the two things that matter most to us are security and caching.
Why Rafeeq runs on Cloudflare
Rafeeq is a delivery platform. That means two non-negotiable constraints. First, the platform has to stay up and fast during demand spikes — Friday evenings, Ramadan, promotions, major sporting events. Second, it is a constant target: credential-stuffing attempts against customer accounts, scrapers hitting our menu and pricing data, and the occasional volumetric attack aimed at our APIs.
Cloudflare sits in front of everything we expose to the public internet. It is the single control plane where we handle TLS termination, DDoS absorption, WAF, bot management, rate limiting, and edge caching before a request ever reaches our origin. Consolidating those concerns at the edge is what lets a lean engineering team defend and scale a platform of this size.
Security: defense that starts before the origin
The most useful mental shift Cloudflare gave us is that security is something you do at the edge, not just at the application layer. By the time a request reaches our services, it has already passed through several independent filters.
WAF and managed rules
We run Cloudflare's managed WAF rulesets (the OWASP core ruleset plus Cloudflare's own managed rules) and layer custom rules on top for Rafeeq-specific patterns. The custom rules are where most of the value is: blocking requests that hit internal API paths from outside known networks, challenging traffic from ASNs we never see legitimate customers on, and enforcing that certain endpoints only accept the content types and methods they are designed for.
# Example custom WAF expression (Cloudflare Rules language)
(http.request.uri.path contains "/internal/"
and not ip.src in $office_networks)
or (http.request.method eq "POST"
and http.request.uri.path eq "/api/checkout"
and not http.request.headers["content-type"][0] contains "application/json")
Bot management and rate limiting
A delivery marketplace is catnip for scrapers — competitors want your catalog and your prices. Cloudflare Bot Management scores every request, and we act on that score: serving verified search engine bots normally, challenging suspected automation, and blocking the obvious abusers. On top of that, rate limiting rules cap how often a single client can hit sensitive endpoints like login, OTP, and checkout, which shuts down credential stuffing and brute-force attempts long before they touch our auth service.
Zero Trust for the team
Internal tooling — dashboards, admin panels, staging environments — does not sit on the public internet with a password in front of it. It sits behind Cloudflare Access, so reaching it requires an authenticated identity and device posture, not a VPN and a shared secret. This was a big part of the Zero Trust conversation on stage: the goal is that no internal surface is reachable just because someone found the URL.
Caching: speed that protects the origin
Security gets the headlines, but caching is what keeps Rafeeq fast and is a security control in its own right — every request served from cache is a request your origin never has to handle, which means your infrastructure degrades gracefully instead of falling over under load.
Our caching strategy has three layers:
- Static assets — images, menu photos, JS, CSS, fonts — are cached aggressively at Cloudflare's edge with long TTLs and immutable fingerprinted filenames. These almost never hit the origin.
- Semi-dynamic content — restaurant listings, category pages, menus that change infrequently — uses shorter edge TTLs combined with stale-while-revalidate so customers get an instant response while Cloudflare refreshes in the background.
- Dynamic and personalized responses — carts, user sessions, live order tracking — bypass the cache entirely, routed by cache rules that key on cookies and path.
# Cache rule intent (simplified)
# 1. Cache static assets hard
if host eq "cdn.rafeeq.app" -> cache everything, edge TTL 1 year
# 2. Cache menu pages briefly, serve stale while revalidating
if uri.path matches "^/restaurants/" -> cache, edge TTL 60s, SWR 300s
# 3. Never cache authenticated or transactional traffic
if cookie contains "session" or uri.path starts with "/api/" -> bypass cache
Two Cloudflare features do a lot of heavy lifting here. Tiered Cache reduces origin load further by having edge locations pull from a regional parent cache instead of each going back to origin independently. And cache purge by tag lets us invalidate exactly the right set of pages the moment a restaurant updates its menu or a price changes — no blunt full-zone purges that would stampede the origin.
The combined effect is that a large share of our traffic never reaches our servers at all. During peak events, the edge cache hit ratio is what stands between us and an origin meltdown.
What I took away from the stage
A few themes came up across every speaker in the Voice of the Customer session, whether they were from aviation, the public sector, hospitality, or delivery:
- The edge is the new perimeter. Security, performance, and resilience are increasingly the same conversation, handled in the same layer, before traffic reaches your origin.
- AI changes the threat model on both sides. Attackers automate faster; defenders need scoring, anomaly detection, and adaptive controls that keep up. This was the heart of Özgür's keynote and it resonated with everything we see operationally.
- Resilience is a product feature. For a consumer platform, staying fast and available during the exact moments everyone shows up at once is not an infrastructure detail — it is the customer experience.
Thank you to Cloudflare for bringing Immerse to Doha and for inviting Rafeeq to share our story, and to Özgür Danışman for moderating a genuinely useful discussion. Events like this are rare in the region, and the appetite for building a faster, safer internet in Qatar is clearly there.
If you are running a high-traffic platform in the Gulf and thinking through your edge security and caching strategy, I am always happy to compare notes — reach out on LinkedIn.
Recommended reading

Per-Team Cost Allocation in Shared Kubernetes Clusters: From Chaos to Clarity
Implementing accurate per-namespace cost allocation in multi-tenant Kubernetes clusters, covering request vs. usage attribution, shared resource amortization, and building showback dashboards that drive accountability.

Measuring and Eliminating Toil: From 40% to 12% of Engineering Time
A systematic approach to identifying, measuring, and automating toil—the repetitive operational work that scales linearly with service growth and prevents engineers from doing creative work.

Serverless Postgres in Production: Branching, Scale-to-Zero, and the End of Database Provisioning
Running Neon serverless Postgres in production for 8 months — covering database branching workflows, scale-to-zero economics, connection pooling, and migration from RDS.

Comments
No comments yet. Be the first to share your thoughts.