Reader small image

You're reading from  Full Stack Web Development with Remix

Product typeBook
Published inNov 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781801075299
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Andre Landgraf
Andre Landgraf
author image
Andre Landgraf

Andre is a full stack developer from Germany. He graduated with an MS in Information Systems from the Technical University of Munich and was also awarded an MS in Computer Science from Sofia University in Palo Alto. Andre currently lives in Cupertino, California, and he works as a Software Engineer at LinkedIn. Andre loves learning, writing, and speaking about all things web. In his free time, he tutors aspiring developers and builds for the web.
Read more about Andre Landgraf

Right arrow

Forwarding files to third-party services

So far, we are hosting our user files on the server’s filesystem. This is sufficient for the educative scope of BeeRich. However, when working with user files, we should also consider hosting them on a dedicated file storage service. This section quickly outlines what else we need to consider when working with user files.

Hosting user files directly on a web server may not be sufficient for most use cases. Hosting files locally may be hard to scale and requires you to secure sensitive user files and backups on your systems. Additionally, reading and writing to disk might create a lot of overhead for the web server that can be avoided by delegating the reads and writes to a third-party service.

Most popular third-party storage services offer APIs to stream files. This allows us to receive the file upload as a stream of data so that we can forward the stream to a third-party service. After the upload is completed, the storage API...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Full Stack Web Development with Remix
Published in: Nov 2023Publisher: PacktISBN-13: 9781801075299

Author (1)

author image
Andre Landgraf

Andre is a full stack developer from Germany. He graduated with an MS in Information Systems from the Technical University of Munich and was also awarded an MS in Computer Science from Sofia University in Palo Alto. Andre currently lives in Cupertino, California, and he works as a Software Engineer at LinkedIn. Andre loves learning, writing, and speaking about all things web. In his free time, he tutors aspiring developers and builds for the web.
Read more about Andre Landgraf