Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29543

How to use AWS for lighting fast fizz buzz

$
0
0

I would like to understand how to use cloud computing to make relatively simple programs very fast and store the results in a table (possibly AWS NoSQL). I am not interested in web hosting or web applications. I have not yet found a tutorial that suits my needs so am setting this problem for myself as a kind of hello world example: "What is the best way(s) to leverage AWS EC2 (or lambda) to accomplish two things.

  1. compute the values of the fizz buzz function for each integer from 1 up to some value X. The fizz buzz function is as follows: return "fizz" for numbers evenly divisible by 3 and "buzz" for those evenly divisible by 5. Return "Ugz" if evenly divisible by neither.
  2. Store the results in a two column table such that the first column contains the inputs to the fizz buzz function and the second the outputs. "

I am meditating on many questions here. The first: should I use EC2 or Lambda? The second: If EC2, which of the instance types should I use? Compute optimized? Accelerated? The third: If EC2, Do I/should I write my code to take advantage of parallelism (calculate the fizz buzz function on many different processors at the same time)? The forth: how much is the choice of language relevant for a problem like this? The fifth: Is using an AWS NoSQL table to persistently store the results of my functions the best option here?

As you can tell, this is a very open ended question. I could spend weeks exploring courses and articles that are directed at different audiences and very different needs. But if someone could point me in the right direction I believe it would be very helpful for myself and others in a similar position. No indolence intended.


Viewing all articles
Browse latest Browse all 29543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>