Uploading files to S3 with React Native and Ruby on Rails

Intro I've recently been working on a top secret React Native project, powered by a Rails backend deployed to Heroku. The app allows users to upload images/videos to our backend as part of one of the flows. Originally, I was using a multipart/form-data request to upload the data + files directly to our backend, which would then upload them to S3. This approach has a couple of main disadvantages: Heroku timeouts will abort the request if it takes longer than 30s (can happen if uploading lots of, or big files) it increases the load on your backend This post will be specifically talking about AWS S3 but GCP has a Signed URLs feature too. Presigned URLs in S3 allow continue...

RStudio Server

My father, Ben Anderson plays with numbers. As his Twitter bio says "big data, small data, open data, any data". He works with R a lot and has been persuading me to take a look at it. I've held off until now because I'm all for analysing data in real time (primarily using delightful JS libraries such as Chart.js and D3.js). As far as I understood it, R is geared towards static data analysis and because of that, is able to utilise the hardware it runs on to optimise computations. Dad has an SSD in his Mac which reduces the time to load data substantially, but he also makes use of the R package data.table. This library continue...