Skip to main content

Featured

Designing React States

  Why We Need to Design States We already know that we should use state if we want the component to change the content it is rendering. What we don't have answers for yet is: when should state be called? what type of data should the state be? in which component is it defined? This design process will pay off when trying to answer these questions in complicated projects so practice it with simple projects first.  It follows three main steps: distinguish states from events, distinguish the variable name and data type for the state, distinguish which component should house this state according to the other components that will need it as props  State Design Process Distinguishing State from Event First, we have to figure out what will be a state and what will be an event handler given the three following questions: 1. make a list of actions your user can make and the changes in the UI said actions make  2. generally speaking, user actions are event handlers and the chan...

Hosted vs Self-Hosting Platforms

 

Insight Terra & AWS 

Pros and Cons with Hosted Platforms

Switching from a hosted platform to self-hosting is a common choice for many developers. However, making this switch requires careful consideration of the pros and cons of each platform as well as expertise level. We will explore the differences between Vercel and AWS, two popular platforms for hosting applications.

Pros

Vercel is the perfect option as a hosted platform for Next.JS applications since they abstract away many of the technical know-hows that would be required when self-hosting and they setup and maintain all of the small details for you

It will only take a few minutes and clicks to deploy your application from GitHub onto the web and start generating revenue. For start-ups and small projects, getting your app deployed with as little speed bumps as possible is very important and companies like Vercel will take care of this.

In short, time is vastly saved and technical know-how is at an absolute minimum.

Cons

Nevertheless, compared to a self-hosting platform like AWS, the pricing can be expensive: if your application will be generating revenue, you must must sign up for their pro plan which charges $20/month for each developer working on the project repo, e.g. if you and another person are maintaining a project hosted on Vercel, the monthly bill would be $40. 

Moreover, should your application exceed the limits of its usage, you will be charged even more than expected. 

Finally, even if you only get 10 visits to your application a month, that $40 charge will still occur despite the low usage.  

 

Pros and Cons with Self-Hosting Platforms

Pros

People who have the knowledge to be able to deploy and maintain projects on AWS is a highly coveted skill that is well compensated.  As a company expands, they will want to minimize their hosting costs by having someone dedicated to juggling all of the AWS balls. 

Example: Mailchimp charges you $13/month for sending out 5,000 emails/month.  If you set this up with AWS, you'll be charged 50 cents for the same volume per month. 

Hosted platforms like Vercel and Netlify use AWS and then charge 400% of their initial costs to make the deployment easy for their customers. Therefore, you can cut out the middleman and just do it yourself by learning the required skills. 

Lastly, it forces you to keep your code architecture clean, decoupled, and well organized.

Cons

First, you will need to setup your API, presumably built with Express, and configure it to make it work with AWS Lambda which can take hours, if not days for an absolute beginner, to figure out.

Second, you will also need to know the ins-and-outs of AWS Amplify to connect the frontend of your application to the backend on AWS Lambda. 

Third, you will need to use AWS Certificate Manager to get the https:// for your application and then link your certificate to Google Domains. 

Lastly, there are still a lot of hoops you will need to jump through to get a simple 2 page app working.


 

Comments

Popular Posts