amazon web services - Cheapest way to use AWS for simple response -


what wanted achieve pretty simple, if send request address, response single integer number, 13 example. think equivalent hosting .html page single number on page , can parse string in application. (it unity game, using www class send request.)

(this version number. if greater stored in app update , send request other place , retrieve bigger)

i looking cheapest way can handle this. planned use aws confused component should use? s3? ec2? lambda? cloudfront?

if think doing on web hosting or heroku or else better, wanted hear it.

to serve simple value, s3 should trick.

create bucket in console, using lonely lowercase letters, digits, , dashes in name. name has globally unique among of s3, make unique. we'll call bucket name example-bucket.

create file on computer desired contents. if plain text, call version.txt.

in aws console, select bucket, , upload file. while clicking through "next" screens, put check next "make public" , accept defaults. upload file.

now, go https://example-bucket.s3.amazonaws.com/version.txt in browser , verify (using actual bucket name. that's download link.

done. long don't expect handle on 800 requests per second, want.

review s3 pricing, of course.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -