I'm having my project for my "distributed system development" class, and my project is making a minimal version of cloud storage (sth like Google Drive).
my approach here is using 2 backend server written in Rails, with 1 proxy server to control requests sent to servers, 2 two Postgres server with master-slave replication relationship.
But problem here is how to storage real assets (video, pdf , mp3 ...). I have no experience in this.
example: if 1 user opens 2 browser tab, then in each tab he uploads 1 video with same name to 1 directory, what will happend?