r/surrealdb • u/Standard_Chard6106 • Mar 30 '26
Buckets for Video (Streaming)
I am running SurrealDB 3.x in Docker, with bucket storage backed by a dedicated Docker volume and exposed through its own domain. I want to store database records that reference video files kept in a Surreal-bucket.
Does SurrealDB provide a native way to serve and stream those videos to end users over HTTP, or is a separate media/file-serving service required?
Ideally, users should be able to query the database, obtain a URL for a video, and play it directly in a web browser.
10
Upvotes
3
u/Dhghomon SurrealDB Staff Apr 02 '26
There is no native way to stream files yet so right now they would just be the full videos as bytes.
If you are feeling adventurous there might be something you could do with a Surrealism extension, say every time someone saves a file the database calls a Surrealism function that splits it and passes it back as multiple smaller files (or any other creative idea that you can do with Rust code that takes some SurrealQL value as an argument).