Skip to content

Instantly share code, notes, and snippets.

View nikkaroraa's full-sized avatar
👨‍💻
building!

nikhil nikkaroraa

👨‍💻
building!
View GitHub Profile
@nikkaroraa
nikkaroraa / kunal_shah-beerbiceps.md
Created September 30, 2020 12:09
Kunal Shah sharing his thoughts on future of India, the problems of it, and how it can be improved

kunal shah

  • India is country of really bad salesman

  • Do that extra 5%, that is what really differs from you from the rest

  • What do people want

  • Will they pay for it?

@nikkaroraa
nikkaroraa / serverless.md
Created September 26, 2020 11:56
serverless

Serverless

What's serverless?

  • Serverless is a new paradigm in which the developers don't have to manage servers anymore...
  • Just deploy code
  • Or just deploy functions
  • Initially, serverless === FaaS (Functions as a Service)
  • Serverless was pioneered by AWS Lambda but now it also includes anything that's managed: "databases, messaging, storage, etc"
  • Serverless doesn't mean there are no servers. It means you just don't manage / provision / see them
@nikkaroraa
nikkaroraa / kinesis.md
Created September 25, 2020 08:56
Amazon Kinesis

AWS Kinesis

Overview

  • Kinesis is a managed alternative to Apache Kafka
  • Great for application logs, metrics, IoT, clickstreams
  • Great for "real-time" big data
  • Great for streaming processing frameworks (Spark, NiFi, etc)
  • Data is automatically replicated to 3 AZ
@nikkaroraa
nikkaroraa / sns.md
Created September 25, 2020 08:36
Amazon SNS (Simple Notification Service)

Amazon SNS

  • The "event producer" only sends message to one SNS topic
  • As many "event receivers" (subscriptions) as we want to listen to the SNS topic notifications
  • Each subscriber to the topic will get all the messages (note: new feature to filter messages)
  • Up to 10,000,000 subscriptions per topic
  • 100,000 topics limit
  • Subscribers can be:
    • SQS
    • HTTP/HTTPs (with delivery retries - how many times)
  • Lambda
@nikkaroraa
nikkaroraa / sqs.md
Created September 25, 2020 08:22
Amazon SQS (Simple Queue Service)

Amazon SQS

Standard Queue

  • Oldest offering (over 10 years old)

  • Fully managed service, used to decouple applications

  • Attributes

    • Unlimited throughput, unlimited number of messages in queue
    • Default retention of messages: 4 days, maximum of 14 days
  • Low latency (<10ms on publish and receive)

@nikkaroraa
nikkaroraa / allow-https-elastic-beanstalk.md
Created September 18, 2020 14:17
How to configure HTTPS for Elastic Beanstalk?

How to configure HTTPS for Elastic Beanstalk?

Get a SSL/TLS certificate

This can be done through AWS's Certificate Manager service.

Click here to view the steps

Open HTTPS port on the load balancer

@nikkaroraa
nikkaroraa / route53-cloudflare.md
Created September 18, 2020 13:53
How to use Route 53 on top of Cloudflare

How to use AWS's Route 53 on top of Cloudflare?

Configure Route 53

  • Create a Public Hosted Zone in Route 53
  • Create a simple record for the domain you want, and where do you want to target that domain to?
  • By now, you should have 3 records under the hosted zone that you just created
    • NS
    • SOA
  • A
@nikkaroraa
nikkaroraa / elastic-beanstalk.md
Created September 18, 2020 07:38
Elastic Beanstalk

Elastic Beanstalk

Common use cases

  • Setup infrastructure for your web app
  • Create your application on a broad set of curated platforms
  • Scale infra for your app based on demand
  • Automatically apply patches and security fixes
  • Load-balance traffic for higher availability
  • Monitor the health of your app
@nikkaroraa
nikkaroraa / ec2.md
Created September 18, 2020 07:36
Foundations of EC2 (Elastic Compute Cloud)

Amazon EC2 (Elastic Compute Cloud)

Credits

Video: https://www.youtube.com/watch?v=kMMybKqC2Y0

Overall layout of EC2

  • Each AWS region contains multiple availability zones

  • Each availability zone has got its own networking domain, power domain, cooling subsystems

@nikkaroraa
nikkaroraa / cloudflare-and-vercel.md
Last active September 18, 2020 07:35
How to setup Vercel with Cloudflare?

Setting up Vercel with Cloudflare

  • Go to "Domains" section in Vercel
  • Type out your domain, and click on "Add"
  • It'll give you an "A" record to enter in the DNS settings
  • Navigate to the Cloudflare dashboard
    • From there go to DNS, and add the A record there with Proxy status being set to "true"
    • I also had an "A" record which was pointing to Namecheap, since I bought the domain from there. Make sure to remove that.
      • "A" record is basically an Address record that maps the domain name to the IP address of the computer hosting the domain
  • Add a CNAME record to handle "www"