CDN and Server Architecture : Picture upload feature for my web app -


i having trouble understanding part of file storage system in server architecture , cdn.

this environment:

1.) 1 nginx load balancer

2.) 2 node.js express.js web servers

3.) 1 mongodb database

4.) 1 cdn

what trying do?

i trying implement feature client can upload there profile picture , product's images server. researched best practices , found out saving upload files cdn work best.

what understand far?

i understand in load balanced environment, need separate media files in different server. however, confusing me how flowing of data works. ( i'm not asking how implement node.js express.js , i'm asking concept of data flow )

what don't understand?

my questions are:

1.0) need save images on web server?

1.1) if (1.0), need 1 more web server stack save images uploaded user in order cdn load server?

2.) how should data flow when user start uploading images?

these steps confused

step 1: user choose file upload

step 2: data upload ....

step 3: server upload cdn ?

or should user upload right cdn server

thankyou ! :)

it depends on requirement :) if directly want user upload images cdn(akamai) can create ftp access them(hoping these users less). can use software winscp , upload images straight cdn.

then in akamai configuration can define rule saying image request go akamai netstorage , server it.

to honest before implementing this, suggest spend more time on architecture design.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -