Dan Murphy retweeted
Alright, here it it after literally years of tinkering, months of research and weeks of writing, re-rewriting, editing, cutting and incorporating feedback, my piece on the Four โReal-Worldโ Foundational Engineering Manager Archetypes is out!
Link ๐
Dan Murphy retweeted
A conversation I have frequently about ACH speeds.
Me: The most important factor to understand is Reg E and the broader constellation that makes banks liable for consumer accounts being drained.
X: But other nations manage this without slowing down bank transfers.
Me: Which one.
Dan Murphy retweeted
After careful consideration, I am honored to announce my commitment to the United States Naval Academy. I am thankful to Coach Newberry, Coach Volker, Coach Hall and Coach MacDonald for this amazing opportunity to serve my country and play the game I love. I also want to thank my parents, Coach Spagnolo and the Iona Prep family for all they have done to prepare me for this next step in my life. #committed #fearthegoat #GoNavy #BeatArmy
@ionafootball @Joespags12 @CoachMoffitt @_CoachNew @D_WallCoach @JMacDonald_Navy @RivalsFriedman
Dan Murphy retweeted
This is Scott Wu.
10 days ago, he launched "Devin", the first-ever AI software engineer & it's insane.
It took the tech world by surprise.
Here are 7 most-shocking things Devin can do:
Dan Murphy retweeted
Top Architectural Styles.
The method to download the high-resolution image is available at the end.
In software development, architecture plays a crucial role in shaping the structure and behavior of software systems. It provides a blueprint for system design, detailing how components interact with each other to deliver specific functionality. They also offer solutions to common problems, saving time and effort and leading to more robust and maintainable systems.
However, with the vast array of architectural styles and patterns available, it can take time to discern which approach best suits a particular project or system. Aims to shed light on these concepts, helping you make informed decisions in your architectural endeavors.
To help you navigate the vast landscape of architectural styles and patterns, there is a cheat sheet that encapsulates all. This cheat sheet is a handy reference guide that you can use to quickly recall the main characteristics of each architectural style and pattern.
โ
Subscribe to our newsletter to download the ๐ก๐ข๐ ๐ก ๐ซ๐๐ฌ๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง ๐ข๐ฆ๐๐ ๐. After signing up, find the download link on the success page: bytebytego.ck.page/92bb16f8aโฆ
Dan Murphy retweeted
screenshot-to-code:
upload a screenshot of any website, watch as AI progressively builds the html, iteratively improving the generated code by comparing it against the screenshot repeatedly.
Dan Murphy retweeted
๐๐ผ๐ ๐ฎ ๐ฆ๐ถ๐ป๐ด๐น๐ฒ ๐๐ถ๐ป๐ฒ ๐ข๐ณ ๐๐ผ๐ฑ๐ฒ ๐๐ฟ๐ผ๐๐ด๐ต๐ ๐๐ผ๐๐ป ๐ ๐๐ถ๐น๐น๐ถ๐ผ๐ป ๐๐ผ๐น๐น๐ฎ๐ฟ ๐ฅ๐ผ๐ฐ๐ธ๐ฒ๐
On June 4, 1996, the European Space Agency (ESA) launched the Ariane 5 rocket for the first time, marking a significant moment in the history of space exploration. This mission was not without difficulty, though, as ๐ฎ ๐๐ถ๐ป๐ด๐น๐ฒ ๐น๐ถ๐ป๐ฒ ๐ผ๐ณ ๐ฐ๐ผ๐ฑ๐ฒ ๐ฟ๐ฒ๐๐๐น๐๐ฒ๐ฑ ๐ถ๐ป ๐ฎ ๐ฐ๐ฎ๐๐ฎ๐๐๐ฟ๐ผ๐ฝ๐ต๐ถ๐ฐ ๐ณ๐ฎ๐ถ๐น๐๐ฟ๐ฒ and the loss of the entire cargo, which was worth almost half a billion euros.
Two communication satellites were intended to be transported into geostationary transfer orbit by the Ariane 5. Up until the rocket deviated off track and burst 37 seconds into the flight, the launch was going smoothly. ๐ ๐๐ผ๐ณ๐๐๐ฎ๐ฟ๐ฒ ๐ณ๐น๐ฎ๐ ๐ถ๐ป ๐๐ต๐ฒ ๐ด๐๐ถ๐ฑ๐ฎ๐ป๐ฐ๐ฒ ๐๐๐๐๐ฒ๐บ, which was in charge of regulating the rocket's course, was found to be the root of the disaster. The Ariane 5 launch is acknowledged as one of the most expensive software failures in history. The destruction of the scientific satellites delayed scientific research into the workings of the Earth's magnetosphere for almost 4 years.
๐ช๐ต๐ฎ๐ ๐๐ฎ๐ ๐๐ต๐ฒ ๐ฐ๐ฎ๐๐๐ฒ?
A dead part of code from the last Ariane 4 mission, which began almost ten years prior, contained a simple and fixable programming error. The rocket used a method known as the ๐ต๐ผ๐ฟ๐ถ๐๐ผ๐ป๐๐ฎ๐น ๐ฏ๐ถ๐ฎ๐, sometimes known as the BH value, to identify whether it was pointing up or down. This was represented using a 64-bit floating-point variable, which the guidance system used to convert to 16 16-bit signed integers. A 64-bit variable can represent billions of values, while a 16-bit can represent only 65,535 values.
We know that integers are represented with the first bit used to store signs, and 16-bit integers can then be from -32,768 to 32,767. Yet, floating-point numbers are made to track a broader range of numbers, using the same numbers of bits between -1.8e+308 and -2.2e-308. If you try to store one into a 16-bit integer, it will be much out of the bound of a signed integer. So, what happened is a well-known ๐ถ๐ป๐๐ฒ๐ด๐ฒ๐ฟ ๐ผ๐๐ฒ๐ฟ๐ณ๐น๐ผ๐.
One more contributing factor to the disaster was user requirements that Ariane 5 use a much steeper trajectory than previous ones, which resulted in a more incredible vertical velocity.
What are some takeaways from the disaster? ๐ฎ ๐ฐ๐ผ๐ฝ๐-๐ฝ๐ฎ๐๐๐ถ๐ป๐ด ๐ฐ๐ผ๐ฑ๐ฒ ๐๐ถ๐๐ต๐ผ๐๐ ๐๐ป๐ฑ๐ฒ๐ฟ๐๐๐ฎ๐ป๐ฑ๐ถ๐ป๐ด ๐ถ๐ (Cargo-cult) is a significant issue. Another is the omission of proper exception handling, neglecting changed user requirements, and the absence of appropriate tests.
#technology #softwareengineering #programming #techworldwithmilan #softwaredesign
Dan Murphy retweeted
๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐ฅ๐ฒ๐๐ถ๐น๐ถ๐ฒ๐ป๐ ๐ฃ๐ฎ๐๐บ๐ฒ๐ป๐ ๐ฆ๐๐๐๐ฒ๐บ๐
The recent article by Shopify Engineering explained the top 10 most useful tips and tricks for building resilient payment systems.
Here is the list:
๐ญ. ๐๐ผ๐๐ฒ๐ฟ ๐ฌ๐ผ๐๐ฟ ๐ง๐ถ๐บ๐ฒ๐ผ๐๐๐: They suggests investigating and setting low timeouts everywhere possible. For instance, Ruby's built-in Net::HTTP client has a default timeout of 60 seconds to open a connection, write data, and read a response. This is too long for online applications where a user is waiting. The author suggests an open timeout of one second with a write and read or query timeout of five seconds as a starting point.
๐ฎ. ๐๐ป๐๐๐ฎ๐น๐น ๐๐ถ๐ฟ๐ฐ๐๐ถ๐ ๐๐ฟ๐ฒ๐ฎ๐ธ๐ฒ๐ฟ๐: Circuit breakers, like Shopify's Semian, protect services by raising an exception once a service is detected as being down. This saves resources by not waiting for another timeout. Semian protects Net::HTTP, MySQL, Redis, and gRPC services with a circuit breaker in Ruby.
๐ฏ. ๐จ๐ป๐ฑ๐ฒ๐ฟ๐๐๐ฎ๐ป๐ฑ ๐๐ฎ๐ฝ๐ฎ๐ฐ๐ถ๐๐: The author discusses Little's Law, which states that the average number of customers in a system equals their average arrival rate, multiplied by their average time. Understanding this relationship between queue size, throughput, and latency can help design systems that can handle load efficiently.
๐ฐ. ๐๐ฑ๐ฑ ๐ ๐ผ๐ป๐ถ๐๐ผ๐ฟ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐๐น๐ฒ๐ฟ๐๐ถ๐ป๐ด: Google's site reliability engineering (SRE) book lists four golden signals a user-facing system should be monitored for latency, traffic, errors, and saturation. Monitoring these metrics can help identify when a system is at risk of going down due to overload.
๐ฑ. ๐๐บ๐ฝ๐น๐ฒ๐บ๐ฒ๐ป๐ ๐ฆ๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ๐ฑ ๐๐ผ๐ด๐ด๐ถ๐ป๐ด: They recommends using structured logging in a machine-readable format, like key=value pairs or JSON, which allows log aggregation systems to parse and index the data. In distributed systems, passing along a correlation identifier to understand what happened inside a single web request or background job is useful.
๐ฒ. ๐จ๐๐ฒ ๐๐ฑ๐ฒ๐บ๐ฝ๐ผ๐๐ฒ๐ป๐ฐ๐ ๐๐ฒ๐๐: To ensure payment or refund happens exactly once, they recommends using Idempotency keys, which track attempts and provide only a single request is sent to financial partners. This can be achieved by sending a unique idempotency key for each shot.
๐ณ. ๐๐ฒ ๐๐ผ๐ป๐๐ถ๐๐๐ฒ๐ป๐ ๐ช๐ถ๐๐ต ๐ฅ๐ฒ๐ฐ๐ผ๐ป๐ฐ๐ถ๐น๐ถ๐ฎ๐๐ถ๐ผ๐ป: Reconciliation ensures that records are consistent with those of financial partners. Any discrepancies are recorded and automatically remediated where possible. This process helps maintain accurate records for tax purposes and generate accurate reports for merchants.
๐ด. ๐๐ป๐ฐ๐ผ๐ฟ๐ฝ๐ผ๐ฟ๐ฎ๐๐ฒ ๐๐ผ๐ฎ๐ฑ ๐ง๐ฒ๐๐๐ถ๐ป๐ด: Regular load testing helps test systems' limits and protection mechanisms by simulating large-volume flash sales. Shopify uses scriptable load balancers to throttle the number of checkouts happening at any time.
๐ต. ๐๐ฒ๐ ๐ผ๐ป ๐ง๐ผ๐ฝ ๐ผ๐ณ ๐๐ป๐ฐ๐ถ๐ฑ๐ฒ๐ป๐ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐บ๐ฒ๐ป๐: Shopify uses a Slack bot to manage incidents, with roles for coordinating the incident, public communication, and restoring stability. This process starts when the on-call service owners get paged, either by an automatic alert based on monitoring or by hand, if someone notices a problem.
๐ญ๐ฌ. ๐ข๐ฟ๐ด๐ฎ๐ป๐ถ๐๐ฒ ๐๐ป๐ฐ๐ถ๐ฑ๐ฒ๐ป๐ ๐ฅ๐ฒ๐๐ฟ๐ผ๐๐ฝ๐ฒ๐ฐ๐๐ถ๐๐ฒ๐: Retrospective meetings are held within a week after an incident to understand what happened, correct incorrect assumptions, and prevent the same thing from happening again. This is a crucial step in learning from failures and improving system resilience.
Check the full text in the comments.
#technology #softwareengineering #programming #techworldwithmilan #distributedsystems
Dan Murphy retweeted
Have you ever wondered why some cities are just so much nicer than others?
Well, it's probably because they have good "Third Places."
What is a Third Place? It's wherever you go when you're not at home or at work...
Dan Murphy retweeted
Shopify deleted 12,000 meetings this year.
Today, they went a step further with a tool that shows the $$$ cost of holding meetings.
I spoke to @nejatian (Shopify's COO) about meeting bloat and protecting craft time.
Here are 6 spicy takes from our interview ๐
Dan Murphy retweeted
10 principles for building resilient payment systems (by Shopify).
Shopify has some precious tips for building resilient payment systems.
1. Lower the timeouts, and let the service fail early
The default timeout is 60 seconds. Based on Shopifyโs experiences, read timeout of 5 seconds and write timeout of 1 second are decent setups.
2. Install circuit breaks
Shopify developed Semian to protect Net::HTTP, MySQL, Redis, and gRPC services with a circuit breaker in Ruby.
3. Capacity management
If we have 50 requests arrive in our queue and it takes an average of 100 milliseconds to process a request, our throughput is 500 requests per second.
4. Add monitoring and alerting
Googleโs site reliability engineering (SRE) book lists four golden signals a user-facing system should be monitored for: latency, traffic, errors, and saturation.
5. Implement structured logging
We store logs in a centralized place and make them easily searchable.
6. Use idempotency keys
Use Universally Unique Lexicographically Sortable Identifier (ULID) for these idempotency keys instead of a random version 4 UUID.
7. Be consistent with reconciliation
Store the reconciliation breaks with Shopifyโs financial partners in the database.
8. Incorporate load testing
Shopify regularly simulates the large volume flash sales to get the benchmark results.
9. Get on top of incident management
Each incident channel has 3 roles: Incident Manager on Call (IMOC), Support Response Manager (SRM), and service owners.
10. Organize incident retrospectives
For each incident, 3 questions are asked at Shopify: What exactly happened? What incorrect assumptions did we hold about our systems? What we can do to prevent this from happening?
โ
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/42Ex9oZ
Dan Murphy retweeted
Curious about emerging architectures for LLM applications?
@BornsteinMatt and @rajko_rad on their current view of the LLM app stack and much more: a16z.com/2023/06/20/emergingโฆ
Dan Murphy retweeted
Meriden's Little Rendezvous RAN OUT OF PIZZA after Barstool Sports' founder Dave Portnoy gave their pie the second highest "ONE BITE" rating (9.1 out of 10) of a CT pizza joint! Thanks to @WFSBnews for delivering us a slice of the story! #thatsamore
wfsb.com/2023/06/15/businessโฆ
Dan Murphy retweeted
Netflix's Overall Architecture.
This post is based on research from many Netflix engineering blogs and open-source projects. If you come across any inaccuracies, please feel free to inform us.
Mobile and web: Netflix has adopted Swift and Kotlin to build native mobile apps. For its web application, it uses React.
Frontend/server communication: GraphQL.
Backend services: Netflix relies on ZUUL, Eureka, the Spring Boot framework, and other technologies.
Databases: Netflix utilizes EV cache, Cassandra, CockroachDB, and other databases.
Messaging/streaming: Netflix employs Apache Kafka and Fink for messaging and streaming purposes.
Video storage: Netflix uses S3 and Open Connect for video storage.
Data processing: Netflix utilizes Flink and Spark for data processing, which is then visualized using Tableau. Redshift is used for processing structured data warehouse information.
CI/CD: Netflix employs various tools such as JIRA, Confluence, PagerDuty, Jenkins, Gradle, Chaos Monkey, Spinnaker, Altas, and more for CI/CD processes.
โ
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/42Ex9oZ
Dan Murphy retweeted
UConn names @Chris_Grosse Senior Associate Athletic Director for External Strategy.
Dan Murphy retweeted
Ray Allen with his fellow UConn graduates under his retired jersey is an iconic photo ๐
(via @NutmegNews)



































