Demos and architectures (2)

Last updated May 19, 2026 Learn how you can use D1 within your existing application and architecture.

Deploy to Cloudflare

Tip: Place your database further away for the read replication demo

To simulate how read replication can improve a worst case latency scenario, select your primary database location to be in a farther away region (one of the deployment steps).

You can find this in the Database location hint dropdown.

Reference architectures

Explore the following reference architectures that use D1:

Fullstack applications A practical example of how these services come together in a real fullstack application architecture.

Ingesting BigQuery Data into Workers AI You can connect a Cloudflare Worker to get data from Google BigQuery and pass it to Workers AI, to run AI Models, powered by serverless GPUs.

Composable AI architecture The architecture diagram illustrates how AI applications can be built end-to-end on Cloudflare, or single services can be integrated with external infrastructure and services.

Serverless global APIs An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other.

Retrieval Augmented Generation (RAG) RAG combines retrieval with generative models for better text. It uses external knowledge to create factual, relevant responses, improving coherence and accuracy in NLP tasks like chatbots.

Was this helpful?

YesNo

On this page

Demos and architectures (2) - 图2Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/d1/demos/#page","headline":"Demos and architectures","description":"Explore demo applications and reference architectures that use D1 databases.","url":"https://developers.cloudflare.com/d1/demos/","inLanguage":"en","image":"https://developers.cloudflare.com/d1/demos/og.png?v=fc3162fbfbb60439","dateModified":"2026-05-19","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Migrate D1 alpha databases to the production-ready storage backend. title: Alpha database migration guide image: https://developers.cloudflare.com/d1/platform/alpha-migration/og.png?v=b4badb67c3741641


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/d1/llms.txt
Use this file to discover all available pages before exploring further.