What's new

Automated: A guide to AWS and the possibilities of scalability (Code and Software Architecture)

Welcome to the only entrepreneur forum dedicated to building life-changing wealth.

Build a Fastlane business. Earn real financial freedom. Live your best life.

Tired of paying for dead communities hosted by absent gurus who don't have time for you?

Imagine having a multi-millionaire mentor by your side EVERY. SINGLE. DAY. Since 2007, MJ DeMarco has been a cornerstone of Fastlane, actively contributing on over 99% of days—99.92% to be exact! With more than 39,000 game-changing posts, he's dedicated to helping entrepreneurs achieve their freedom. Join a thriving community of over 90,000 members and access a vast library of over 1,000,000 posts from entrepreneurs around the globe.

Forum membership removes this block.

SimplyMatt

Regular Contributor
FASTLANE INSIDER
LEGACY MEMBER
Read Unscripted!
Joined
Jun 7, 2017
Messages
60
Location
Indiana
Rep Bank
$800
User Power: 185%
Hello Forum,

I wanted to be sure to give back before I started taking. My background is in Computer Science and I wanted to share something that may help those attempting to tackle large technology based challenges. This forum is intended for anyone looking to learn about the technologies present for scalability and those interested in an automated software architecture infrastructure.

To Start:
Most software follows a three tier system.
  1. User Interface (UI) This is the pretty webpage you see before you. This level of the technology stack is responsible for receiving data from a server, and displaying it in a fashion that makes sense to humans. Newer tech has also allowed the UI to interact with the Database layer, and update the UI without a page refresh needing to be preformed. (HTML 5, knockout.js, angular.js, ect)
  2. Data Access Layer / Business Layer: This layer of the stack is responsible for transmitting data submitted on the UI and sending it to the Database; and vice versa. This layer is also responsible of validating internal business rules before allowing transactions. (For example: Chase will not allow you to withdraw $100 when you account balance is $0. You have the Data Access Layer to thank for this.
  3. Database: This layer of the stack is responsible for storing your data and accessing it when necessary in your application. Sounds simple enough, but anyone who is well versed in databases will tell you its easier than it sounds.

It is important to understand the different levels of the stack because you will need to use multiple technologies in AWS to support them all.

Note: As I type this up on 6/12/17, I have no working models of this technology stack (besides what I work with at work, and I cannot share that of course), and therefor cannot go into great detail of the configuration or use of these technologies with absolute certainty. This guide to date will require research and trial and error on your part to get going. As I find a need to play with this technology stack, I do plan on releasing a more detailed guide on the setup.

The Tech!!!
For those unfamiliar, AWS stand for Amazon Web Services. There are multiple cloud based computing companies, but I like AWS for a few different reasons. Most of them are selfish (like the fact I already work with AWS on a daily basis), but there are other reasons to use it; like the fact that if AWS goes down, no one will really care that your application is down, because roughly 70% of the internet will also be down. (Ref: How a typo took down S3, the backbone of the internet)
S3 is an AWS feature btw :)


Inside of AWS, there are multiple features to be utilized. I will categorize them based upon which piece of the software architecture tier they fall under.

Outside of the stack:
VPC
  • A VPC stands for your "Virtual Private Cloud". You can think of it as your own little slice of AWS. The VPC allows your code to be hosted along side other companies code on the same server, with no interference. There is not a huge need to go into detail on this one, but realize that all of the tech listed below this point will need to be maintained inside of a VPC.
  • Note: your VPC will need a: Subnet, Route Table, Internet Gateway, Network ACL, and Security Group. Again, these pieces of the technology will need to be researched to get off of the ground, but most of these pieces of the puzzle are not to hard. You will want to take extra care note when setting up the Security Group though, as incorrect setting there can leave your environment open to the world for access.
  • Noteworthy: Depending on your business needs, you can pay a premium to reserve your own servers in AWS. (Not Shared)
Route 53
  • Think of this as Amazon's version of 'Go Daddy'. While Route 53 contains many more uses than just purchasing domain names, such as natively managing SSL certs (if necessary), and the ability to load balance your web routing; the primary function for new businesses will be to buy your domain name, and point it to the correct server / load balancer in your EC2 (to be covered...).
Now the good stuff.....
UI: EC2 "Elastic Compute Cloud"
This piece of AWS allows you to launch stand alone cloud based servers for automation. You can publish both your UI code, and Business layer code into these cloud based servers to service requests. EC2 also let you place servers in multiple regions. (Like Oregon, California, N. Virginia, etc.) This is helpful for failover planning, as well as allowing your users to experience faster load speeds as the location of content is closer.

Things to expand on at a later date:
  • Nat Gateway
  • Remote RDP
  • Availability Zone
  • Region
  • Load Balancers
  • Auto Scaling
  • AMIs (Images of the VMs)
  • Instances
Note: This tech is unnecessary and not advisable for websites collecting simple data. (Like name, email, payment etc.) This would be ideal for high level applications or new technology spaces where automated processes are necessary.


Data Access Layer
Lambda
If you are interested in the future of computing power and technology, pay attention to this part.

When factories were first opened up, and business owners discovered how much better electricity was at doing work rather than steam, they hired on employees who would build, maintain, and run a generator to power the factory. There were no utilities companies then; no one had a way to ensure electricity to their factory without these employees. When the first power plants and Utilities companies opened up, factory owners were hesitant to fire their employees who ran the generators, as they wanted to ensure their work and productivity was unaffected. We look back on this with the perk of hindsight and realize how silly those factory owner's fears were. Today, we simply plug our electronics into the wall and things magically light up. No one cares which power plant sent our energy, because it just happens. We take it for granted. I bring this analogy up, because it is exactly what is occurring in computing power today.

AWS Lambda – Run Code in the Cloud | AWS Blog

Lambda itself is not the application that is changing the future of computing, but the ideas and processes around it are. Lambda is micro-computing.

Micro-Computing occurs inside of a server. The server has software installed that will allow the physical server to be split up into multiple "theoretical" computers. (Meaning that all hardware of 1 physical machine, are shared among 4 "Virtual" machines.) Virtualization (VM or VMWare) has been around for a while now. Micro-Computing steps that game up by launching only enough data and information that is necessary to 1) Launch the Machine. 2) Preform whatever action is located in the request. (Lambda Call). Lambda also allows these requests to be preformed asynchronously which means that if 150 requests are sent to your service, 150 of these Micro-Computers can be spun up at once to preform the work. These Micro-Computers can additionally be spun up on any server that is also a VM Host.

In a sense, Lambda sparks the birth of the online Utility Company. Soon, developers and companies will be writing code that can be utilized on any server. No more downtime, no more service spike errors, and other impacts are sure to follow.

Ok, I am starving, and have to take a break. I have a lot to expand on Lambda and do not want to do it injustice. If you have question or critique, please fire away :)

Cheers!

Matt
 
Membership Required: Upgrade to Expose Nearly 1,000,000 Posts

Ready to Unleash the Millionaire Entrepreneur in You?

Become a member of the Fastlane Forum, the private community founded by best-selling author and multi-millionaire entrepreneur MJ DeMarco. Since 2007, MJ DeMarco has poured his heart and soul into the Fastlane Forum, helping entrepreneurs reclaim their time, win their financial freedom, and live their best life.

With more than 39,000 posts packed with insights, strategies, and advice, you’re not just a member—you’re stepping into MJ’s inner-circle, a place where you’ll never be left alone.

Become a member and gain immediate access to...

  • Active Community: Ever join a community only to find it DEAD? Not at Fastlane! As you can see from our home page, life-changing content is posted dozens of times daily.
  • Exclusive Insights: Direct access to MJ DeMarco’s daily contributions and wisdom.
  • Powerful Networking Opportunities: Connect with a diverse group of successful entrepreneurs who can offer mentorship, collaboration, and opportunities.
  • Proven Strategies: Learn from the best in the business, with actionable advice and strategies that can accelerate your success.

"You are the average of the five people you surround yourself with the most..."

Who are you surrounding yourself with? Surround yourself with millionaire success. Join Fastlane today!

Join Today
Xevdjoph vjot vjsief... O dassipvmz sap nz TeeT eqqmodevoup up e WQT xjisi O sap iwiszvjoph up vji teni tiswis, cav O'wi ciip vjoploph ecuav EXT mevimz gus vji tdemecomovz. O lpux og O liiq hsuxoph vjev't vji suavi O'mm jewi vu hu.
 
Gsun epuvjis haz vjev tvafoif Dunqavis tdoipdi, vjot ot hsiev dupvipv. O lpix EXT jet e tjov vup ug quxis epf tdemecomovz(DIPVT dunnepfnipv) cav O fofp'v lpux ecuav vji nodsu dunqavoph. Vjeplt gus vjev csiel fuxp. O'n dassipvmz atoph mopufi cav og O'n fuoph e TEET dunqepz vjip o xuamf iwipvaemmz piif vu txovdj vu EXT. O jiesf EXT dep hiv wisz iyqiptowi egvis exjomi. Fu zua jewi epz jepft up iyq xovj uvjis jutvoph qmevgusnt tadj et fudlis, mopufi, ivd.......xjev tiqesevit vjin gsun EXT citofit tdemi epf qsodi?


Tipv gsun nz oQjupi atoph Veqeveml
 
Tussz gus puv jewoph vji aqfevi mevimz hazt. Xet uav ug vji duapvsz epf jewi ciip siefoph epf tvafzoph op nz gsii voni. ONU O en tvsahhmoph tjogvoph nz nopftiv gsun duptanis vu qsufadis epf jewi fiwuvif emm ug nz ipishz vu ov. O xomm iyqepf vjot uav epf qsuwofi nusi op fiqvj et O qmep up atoph EXT epf emm ug vjot vidjpumuhz xjip O gusn nz gostv ofie. Omm liiq zua qutvif.
 
Gsun epuvjis haz vjev tvafoif Dunqavis tdoipdi, vjot ot hsiev dupvipv. O lpix EXT jet e tjov vup ug quxis epf tdemecomovz(DIPVT dunnepfnipv) cav O fofp'v lpux ecuav vji nodsu dunqavoph. Vjeplt gus vjev csiel fuxp. O'n dassipvmz atoph mopufi cav og O'n fuoph e TEET dunqepz vjip o xuamf iwipvaemmz piif vu txovdj vu EXT. O jiesf EXT dep hiv wisz iyqiptowi egvis exjomi. Fu zua jewi epz jepft up iyq xovj uvjis jutvoph qmevgusnt tadj et fudlis, mopufi, ivd.......xjev tiqesevit vjin gsun EXT citofit tdemi epf qsodi?


Tipv gsun nz oQjupi atoph Veqeveml
EXT dep hiv iyqiptowi, cav vjiz jewi vupt ug tdemecomovz vuumt vu jimq zua upmz qez xjev zua piif vuu, et ximm et emisvt og zua siedj e disveop cafhiv op e tiv enuapv ug voni.

Xi jutv e gix fiw ipwosupnipvt ev nz xusl @ sedltqedi. O deppuv howi ov e geos siwoix et O fu puv hu piesmz op fiqvj xovj ov et O fu ev EXT, cav O siemmz moli EXT epf ov jet ciip wisz simoecmi.

Voq: og zua tqop aq op Usihup (ep eweomecomovz bupi EXT uggist), zua xomm ci op vji fiwimuqnipv summ uav bupi; zua xomm hiv vji pix gievasit gostv!
 
Xevdjif vjsief gus ni. Vjepl zua @XiemvjDjetis !

Et ges et dutv. O ati T3 vu qsuwofi japfsift ug wisz tjusv eafou gomit vu ci eweomecmi vu vji qacmod gus e wisz tjusv voni -- mitt vjep upi xiil -- epf vjip sinuwi vjin. O'wi ciip atoph T3 gus uwis e zies. Epf O'n e wisz, wisz mohjv atis ug tvusehi. (Mitt vjep 3H gus Kapi op tvusehi us cepfxofvj) Cav ov ot ectumavimz pidittesz vu ati T3 vu tiswi vjot gapdvoup op nz catopitt.

Jisi't nz comm gus Kapi... epf ov fuacmif op Kamz cideati O'n atoph ov nusi iggidvowimz.

upload_2017-7-23_22-55-50.webp

Nz dutvt xomm fosidvmz tdemi ev vjot sevi et O hsux, epf O cimoiwi ov xomm sineop ep optohpogodepv iyqipti gus ni.

~ Kigg
 
Vjot muult wisz opvisitvoph epf O vjopl O apfistvuuf ov vjeplt vu vji epemuhz ecuav imidvsodovz, cav jux xuamf zua citv iyqmeop vjot op tonqmi iphmotj? Ot vjot pixt huuf gus fiwimuqoph zuas opvispem catopitt tugvxesi?
 
Hmef vu tii ep Enebup EXT uwiswoix vjsief. O ehsii vjev EXT ot taqis gmiyocmi (epf djieq? (og zua fup'v opdmafi mecus)), cav ov ot geosmz dunqmiy. Emciov O fup'v sap e catopitt up EXT, cav gus qistupem tvagg, O vipf vu hsewovevi vuxesf e gmevvis nufim (oi. Fohovem Udiep, Sedltqedi ), ivd. Juxiwis, gus tvesvaqt (epf dunoph emuph tmuxmz, Meshi Ipvisqsotit), vji nuwi vu EXT ot siem. Katv lpux vjev og zua dunnov vu EXT, vjisi ot e xjumi tiv ug mezist vjev zua jewi vu togv vjsuahj. Tu nadj tu vjev vuumoph ot dunoph emuph katv vu nepehi dunqmiyovz et vji teni gmiyocomovz emtu xomm miv zua casp fuxp vji xusmf (wosvaem) xovj e vzqu ( Jux e vzqu vuul fuxp T3, vji cedlcupi ug vji opvispiv ). Dunqmiyovz vipft vu fsowi qiuqmi vu atoph usdjitvsevoup vuumt tadj et Vissegusn (Vissegusn cz JetjoDusq).
 
Vjeplt gus qutvoph vjot. O muul gusxesf vu miespoph e muv nusi jisi.

Dassipvmz O atif Fohovem Udiep, cav O'wi ciip duptofisoph EXT gus iwip nz tnemmis qsukidvt katv tu O dep caomf aq nusi genomoesovz xovj ov.

ifov:

@XiemvjDjetis - xjomi zua hu vjsuahj vjot, O'f ci opvisitvif vu tii zua dunnipv up xjev xuamf ci efwotecmi gus fiwimuqoph ep NWQ epf xjev dep ci migv gus mevis, epf qisjeqt jux vu qmep gus vjev iwipvaem tdemi aq tu xi fup'v ipf aq tjuuvoph uastimwit op vji guuv.

Djiist!
 
Last edited:
O jewi ciip vjoploph ug dsievoph e "jux-vu" wofiu fotdattoph emm ug vjiti ofiet. O jewi ciip qmezoph xovj vji ofie ug timmoph vji dupvipv ev e mevis fevi, cav og vjuti xju jewi dunnipvif up vjot ecuwi xuamf ci opvisitvif, O xuamf miv zua hazt ci nz gostv siwoix. Miv ni lpux zuas vjuahjvt.
 
Membership Required: Upgrade to Expose Nearly 1,000,000 Posts

Ready to Unleash the Millionaire Entrepreneur in You?

Become a member of the Fastlane Forum, the private community founded by best-selling author and multi-millionaire entrepreneur MJ DeMarco. Since 2007, MJ DeMarco has poured his heart and soul into the Fastlane Forum, helping entrepreneurs reclaim their time, win their financial freedom, and live their best life.

With more than 39,000 posts packed with insights, strategies, and advice, you’re not just a member—you’re stepping into MJ’s inner-circle, a place where you’ll never be left alone.

Become a member and gain immediate access to...

  • Active Community: Ever join a community only to find it DEAD? Not at Fastlane! As you can see from our home page, life-changing content is posted dozens of times daily.
  • Exclusive Insights: Direct access to MJ DeMarco’s daily contributions and wisdom.
  • Powerful Networking Opportunities: Connect with a diverse group of successful entrepreneurs who can offer mentorship, collaboration, and opportunities.
  • Proven Strategies: Learn from the best in the business, with actionable advice and strategies that can accelerate your success.

"You are the average of the five people you surround yourself with the most..."

Who are you surrounding yourself with? Surround yourself with millionaire success. Join Fastlane today!

Join Today

Welcome to an Entrepreneurial Revolution

The Fastlane Forum empowers you to break free from conventional thinking to achieve financial freedom through UNSCRIPTED® Entrepreneurship where relative value and problem-solving are executed at scale. Living Unscripted® isn’t just a business strategy—it’s a way of life.

Follow MJ DeMarco

Get The Books that Change Lives...

The Fastlane entrepreneurial strategy is based on the CENTS Framework® which is based on the three best-selling books by MJ DeMarco.

mj demarco books
Back
Top Bottom