Skip to content

Instantly share code, notes, and snippets.

View ashrocket's full-sized avatar
🤩
writing code

Ashley Raiteri ashrocket

🤩
writing code
View GitHub Profile
@ashrocket
ashrocket / ScaleSmart.md
Created January 28, 2025 06:31
ScaleSmart.md

System Design Resiliency Cards


Card 1: Scalability

  • Design for horizontal scaling to handle increased load.
  • Implement load balancing to evenly distribute traffic across servers.
  • Use sharding or partitioning to manage large datasets.
@ashrocket
ashrocket / SystemDesignInterviewNotes.md
Created January 28, 2025 06:23
System Design Interview Notes

System Design

It Depends. On What? Tradeoffs

Question

Clarify Problem, Scope, Requirements use cases, who & how? in what sequence of events will users act Traffic, transactions per second at each bottleneck. request types, read v writes Application profiles, cpu, memory intensive, idempotency stateless, stick sessions

High Level Design

Load Balancing & CDNs

Ruby String Problems Guide

Core Patterns

1. Character Frequency Pattern

def char_frequency(str)
  str.chars.each_with_object(Hash.new(0)) { |char, freq| freq[char] += 1 }
end
@ashrocket
ashrocket / content-loading-placeholder.markdown
Created April 2, 2024 17:34
Content Loading Placeholder
@ashrocket
ashrocket / _aws.graphql
Last active March 12, 2023 19:23 — forked from sc0ttdav3y/_aws.graphql
AWS AppSync GraphQL scalars and directives to support type completion and error checking in Webstorm IDEs
"""
This directive allows you to quickly & easily configure AWS Lambda resolvers within your AWS AppSync API.
https://docs.amplify.aws/cli-legacy/graphql-transformer/function/
https://docs.amplify.aws/cli/graphql/custom-business-logic/#lambda-function-resolver
"""
directive @function(name: String!, region: String) on FIELD_DEFINITION
"""This directive allows results to be deferred during execution"""
directive @defer on FIELD