Cheap ways of going to production and accessing the cloud – EP19 by Karan Bhandari

Cheap ways of going to production and accessing the cloud – EP19 by Karan Bhandari

No Comments on Cheap ways of going to production and accessing the cloud – EP19 by Karan Bhandari

Cheap ways of going to production

1. Use api gateways to invoke your lamdas

https://aws.amazon.com/api-gateway/pricing/

https://aws.amazon.com/lambda/pricing/

https://azure.microsoft.com/en-in/pricing/details/functions/

2. Use AWS codebuild for 2+ minutes of processing or build in azure dev ops

3. Complicated workflow? AWS step functions or Azure logic apps

https://aws.amazon.com/step-functions/pricing/

4. Use azure app function to host angular react application

5. AWS S3 or Blob azure for storage needs

6. google Colabs notebook for free GPU

7. Ms cognitive services/textract

8. if Load balances like elasticloadbalancing costing 22 USD is expensive, install consul as loadblancer in free azure web application -(https://github.com/Infinite-demo/Portfolio-Manager-micro-service-project) and corresponding youtube video

or simple let api gatway do load-balancing for you. https://dashbird.io/blog/can-api-gateway-act-load-balancer/

9. Analytics – azure application insights – 5gb is free. Or Cloudwatch of aws. Managed ELK is expensive

10. Dynamodb for DB needs – nosql

11. Notification hub from azure or AWS pin point or AWS SES/SNS

12. Create graphic assets using GIMP, Inkscape.

13. edit your product launch videos using openshot / camstudio – or create advanced animations in blender.

Pricing Overview

1. Microsoft Azure

Microsoft Azure Estimate

Your Estimate

Service type

Custom name

Region

Description

Estimated Cost

App Service(dotnet/java/python/node angular/react)

South India

Free Tier; 1 F1 (0 Core(s), 1 GB RAM, 1 GB Storage) x 744 Hours; Windows OS

$0.00

Storage Accounts

East US

Block Blob Storage, Blob Storage, LRS Redundancy, Hot Access Tier, 1 GB Capacity, 500 Write operations, 1,500 List and Create Container Operations, 1,500 Read operations, 1,00,000 Archive High Priority Read, 0 Other operations. 1,000 GB Data Retrieval, 1,000 GB Archive High Priority Retrieval, 1,000 GB Data Write

$0.03

https://dashbird.io/blog/can-api-gateway-act-load-balancer/

East US

Free tier

$0.00

Key Vault

East US

0 operations/mo, 0 advanced operations/mo, 0 renewals/mo, 0 protected keys/mo 0 advanced protected keys/mo

$0.00

Azure Active Directory

West US

Free tier, per-authentication MFA billing model, 10 MFA user(s), 25001-100000 directory objects, 0 Hours

$0.00

Azure DevOps

5 Basic plan licence users, 0 Basic + Test plan licence users, Free tier – 1 Microsoft Hosted Pipelines, 1 Self Hosted Pipelines, 0 GB Artifacts, 0 VUMs

$0.00

App Configuration

App Configuration is free during Public Preview.

$0.00

Cognitive Services

West US

Text Analytics: Free size, 5,000 included transactions with 0 overages.

$0.00

Event Grid

West US 2

1,00,000 operations per month

$0.00

Azure IoT Hub

East US

Basic Tier, B1: Unlimited devices, 4,00,000 msgs/day, $10.00/mo, 0 undefined

$0.00

Azure Open Datasets

There is no charge to use Azure Open Datasets during preview.

$0.00

Machine Learning Studio

South Central US

Free

$0.00

Azure Search

East US

Free tier

$0.00

Azure Bot Service

West US

Free Tier

$0.00

Support

Support

$0.00

Licensing Program

Microsoft Online Services Agreement

Monthly Total

$0.03

Annual Total

$0.38

2. Amazon AWS

Service Type

Components

Region

Component Price

Service Price

Amazon S3 Service (US East (N. Virginia))

 

 

 

$0.14

 

S3 Standard Storage:

US East (N. Virginia)

$0.12

 

 

S3 Standard Put Requests:

US East (N. Virginia)

$0.01

 

 

S3 Standard Other Requests:

US East (N. Virginia)

$0.01

 

Amazon DynamoDB Service (US East (N. Virginia))

 

 

 

$0

 

On-demand Capacity:

US East (N. Virginia)

$0

 

 

Provisioned Capacity:

US East (N. Virginia)

$0

 

 

Indexed Data Storage:

US East (N. Virginia)

$0

 

 

DynamoDB Streams:

US East (N. Virginia)

$0

 

 

On-demand backup:

US East (N. Virginia)

$0

 

 

Continuous backup (PITR):

US East (N. Virginia)

$0

 

 

Restoring a table:

US East (N. Virginia)

$0

 

Amazon CloudWatch Service (US East (N. Virginia))

 

 

 

$0

 

Standard Alarms:

US East (N. Virginia)

$0

 

Amazon SNS Service (US East (N. Virginia))

 

 

 

$0

 

Requests:

US East (N. Virginia)

$0

 

 

Notifications:

US East (N. Virginia)

$0

 

Amazon SQS Service (US East (N. Virginia))

 

 

 

$0

 

Requests – Standard Queue:

US East (N. Virginia)

$0

 

 

Requests – FIFO Queue:

US East (N. Virginia)

$0

 

Amazon SWF Service (US East (N. Virginia))

 

 

 

$0

 

Executions:

US East (N. Virginia)

$0

 

 

Chargeable Actions:

US East (N. Virginia)

$0

 

 

Workflow Days:

US East (N. Virginia)

$0

 

AWS Data Transfer In

 

 

 

$0

 

US East (N. Virginia) Region:

Global

$0

 

AWS Data Transfer Out

 

 

 

$1.26

 

US East (N. Virginia) Region:

Global

$1.26

 

AWS Support (Basic)

 

 

 

$0

LAMDA

First 1M requests per month are free.

 

$0

 

 

 

Total Monthly Payment:

 

$1.4

Also See

https://aws.amazon.com/free

 

 

 

3. Google Cloud

1. https://colab.research.google.com

(it is public though)

but you can get GPU/CPUs for google compute engine for free

Colaboratory is a free Jupyter notebook environment that requires no setup and runs entirely in the cloud.

With Colaboratory you can write and execute code, save and share your analyses, and access powerful computing resources, all for free from your browser.

4. CI/CD

a. Github/bitbuck/AWS codecommit allows 5 free users for private repository.

b. azure-devops-services allows

See https://azure.microsoft.com/en-in/pricing/details/devops/azure-devops-services/

1 Free Microsoft-hosted CI/CD
1 Free Self-Hosted CI/CD

Nuget/npm/mavin 2gb is free

Below is for 5 users in free plan

  • 1 hosted job with 1,800 minutes per month for CI/CD and 1 self-hosted job with unlimited minutes per month

  • Industry-leading NuGet Server

  • Support for Maven, npm and Python packages

  • Upstream sources to help protect open-source dependancies

  • Integrated with Azure Pipelines

  • Sophisticated access controls

Azure Pipelines: Includes the free offer from INDIVIDUAL SERVICES

Azure Boards: Work item tracking and Kanban boards

Azure Repos: Unlimited private Git repos

  • Azure Artifacts: 2 GB free

4. ML workloads free notebooks

https://medium.com/@siddesh.001/top-5-online-free-notebook-ipynb-and-other-cloud-services-dbf9580d99e3

Approximate Transcript

This is episode 19 of the technology icing podcast and you are listening to Karan Bhandari working as a technical leader, associated generally, and in this episode I will be covering cheap ways of going to production. That is how to use the cloud for almost free and productionized your idea or your next big startup fling in a very affordable manner so every product that I will be talking about will be under $1. I will not.Consider any product that exceeds that threshold. Of course you need to use it very judiciously so.What first we’re going to production in are cheap and effective manner. Is the API gateway that calls your Lambda functions. So instead of using the traditional virtual machine or the EC2 machine, I recommend that you just write your function. What you generally put in our Web API controller or a spring rest controller and you call it.From a Lambda an what is alambra? It’s it’s offering available and given by AWS to just invoke your function and you need not worry about.The infrastructure, so in the modern Parlett it’s known as the.So with this way of computing the equivalent in Azure is called the Azure functions. Now there are various ways you can invoke Lambda. First is by making a web request, or you could have Cron job triggering it, or you could have something else, like a webhook, commencing it. So I think most people exposed web applications, so it will be good if you.Make the structure of your API using an API gateway where you define what is your port call. What is your post call and then let your API gateway connector to the Lambda function.So and then in the Lambda you take the payload and you return the response. Now all this is OK if your Lambda is going to take under 3 minutes. But what if you want to start a long running job? Well then I can’t use your Lambda because they have a restriction of two to three minutes. So in that case for slightly longer jobs I would recommend you to use a WS code build. I know it’s not used typically for processing your compute loads or you know passing your Excel and going through 1,000,000 lines.But I’ve seen code built gives you a command line interface, AWS code build, and that command line interface. You can run anything you want. You can run a shell script. You can run a Python script from the Shell and they give you various hooks like Preinstall Post install after install publish and inside inside that you can run your long running logican.Think you just have to pay 1 cent for every minute of computation.So what about your complicated workflows? If you are planning to have step one, Step 2, step three. OK. If suppose you get the money in from your accounting system, then you want someone to approve it. So there’s a workflow in it. If it’s under a certain dollar amount, it’s auto approved or maybe.If my management hierarchy air is responsible for this limit and then about them to be as responsible with some other limits. So if you have a complicated workflow, I recommend you to use a WS step function or as your logic applications so it has good integrations with Twitter outlook.And as your cognitive services.So you can run your complicated workflows using a double step function or as your logic apps. Now if you’re having a front end angular application, you can either put it in S3 bucket.Or you could, you know generate a friendly URL with HTTPS using.A day Azure app function, so if you host an application under 1GB which you will be able to host it as a free app. But of course you won’t get a domain name for it, that’s OK, we just wanted, so you’ll get a website likemyapplication.azurewebsites.net.And if you want for your machine learning training needs of free GPU, I recommend you to use Google Colabs. They give you a Jupiter notebook environment and there you can run your tensorflow or keras machine learning models and that will allow you to use the free GPU available and it will allocate a machine whenever you execute one of the cells of the Jupiter Notebook.Then if you want to process receipts invoices.Maybe ID cards address proof. You could use the Microsoft Computer Vision Cognitive service, or extract a WS2.I process your applications images for free for a very low rate, not free.And if you take some.If you take some load balancer which is ELB or the Equal International, it will typically cost $22.00. So what you could do is you could modify API gateway or little bit.To make it behave like a load balancer for you, I’ve posted a link in the article on how someone had managed to make the API gateway behave like a load balancer. Or you could install console. It’s a product of hashicorp, which incidentally does service discovery, but it can behave as a load balancer.If you put it with, if you have an ocelot API gateway written so there is a guy called Infinity demo who has made one proof of concept of making a stock manager application load balance using console, I’m going to put the link in the show notes and if you need as your insights to help you with Analytics you could make.You could make it.By using Azure application insights or cloud watch of AWS, the manage LK instance is expensive. So in Azure application insights you could dump file GB of worth of data an what data could it be OK if you’re using the front end, what the user clicking, what interactions are happening or you just want to analyze in Excel sheet or you want to make pretty graphs, sort of it, or you want to find out.How the sales are doing? Then you can use analytics for free using Azure application insights. Theyhave.net, react, angular APIs and cloud watch has rich integration with even the.With the command line.So you could use analytics for almost free, then very enough for a very affordable databases Dynamo DB.Which is so if you take an Azure SQL, it’ll cost you $6. Why use that when you can use Dynamo DB? I think for up to 24 up to five GB it’s under under a dollar and it is a no SQL like interface. The Mongo DB instructions don’t work out of the box with it, but the instruction set of it is very similar to mongo DB. But there is a higher degree of learning curve because you need to understand what is a read capacity on it. Right capacity unit, but it does the job.It’s a good database.Now for notifications.I I see a lot of services available online. For example there’s MailChimp. We can send an email or a WSS CS or SNS. Now I have seen there is one limitation in that is.Unless you send it from a domain, you will have a limit of 1 email per minute or at the Max 200 emails. So I would recommend that you get a very very cheap domain to send as many emails as you can.But if your limits if your limit is under 200 emails, I think SES is a very good option, and then there is notification hub from Azure or and there is sendgrid and I think 10 grid has a process they you need to give them a business use case and only if you fit their ecosystem they will approve you because emails are something which is very exploited by.On people to send spam so people are cautious about letting you use their emails for free because free meals can cause her work.Or it could cause the reputation of the product that you’re using to go down if used in not a very judicious manner. So yeah, you have to submit use cases to either AWS for either using the pinpoint service which is similar to MailChimp or using or if you have to unlock a higher limit in MailChimp.Are they also offer API integration as well?Even if you’re creating graphical assets, you could use jimp or Inkscape. Jim is similar to photo shop, but with with a slight modification and it’s open source. Inkscape is similar to code.But it’s free of course, and you can make good vector arts using it and you could edit your product, launch videos using openshot, record your screen using camstudio or create advanced animations using blender.So I hope.That is no hindrance to you for going to production. If you are a college kid, you could still make an enterprise grade application.Annyet compete against the best.So.Don’t let any barrier of how to go to prod Imperial growth.Let your wings free. Goodbye this is current bhandari. I’m working as a technology analyst and Associatedgenerallyasa.net and angular react developer also expertised in containerized offering such as docker EKS and kubernetes.This is me signing off goodbye.

About Kurtzace

  • kurtzaceAbout

Kurtzace is an umbrella of products that "Infuse excitement". Our products simplify your life and reduce your pain. We are creators of "Text To Voice", Kurtzac ePage and numerous more that are currently in our pipeline.

Connect With Us

Back to Top