Melih retweeted
Understanding OAuth 2.0
OAuth is an open standard that allows users to grant limited access to their data on one site to other sites or applications without exposing their passwords. It has become the backbone of secure authorization across the web and mobile apps.
𝗧𝗵𝗲 𝗢𝗔𝘂𝘁𝗵 𝗲𝗰𝗼𝘀𝘆𝘀𝘁𝗲𝗺
OAuth connects three main players:
- The User who wants to grant access to their data without sharing login credentials
- The Server that hosts the user's data and provides access tokens
- The Identity Provider (IdP) that authenticates the user's identity and issues tokens
𝗛𝗼𝘄 𝗢𝗔𝘂𝘁𝗵 𝘄𝗼𝗿𝗸𝘀
When a user tries to access their data through a third-party app, they are redirected to log in through the IdP. The IdP sends an access token to the app, which presents it to the server. Recognizing the valid token, the server grants access.
𝗧𝗵𝗲 𝗢𝗔𝘂𝘁𝗵 𝗙𝗹𝗼𝘄𝘀
OAuth 2.0 defines four flows for obtaining authorization tokens:
- Authorization Code Flow - for server-side applications
- Client Credentials Flow - when the app is the resource owner
- Implicit Code Flow - not secure and no longer recommended
- Resource Owner Flow - for trusted apps using owner credentials
𝗞𝗲𝘆 𝗯𝗲𝗻𝗲𝗳𝗶𝘁𝘀
- Enhances user experience by eliminating multiple passwords
- Allows secure data access across platforms using tokens
- Balances accessibility and security
OAuth 2.0 has become the standard for authorization. It enables secure, convenient data sharing while protecting user accounts.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
Melih retweeted
Explaining 9 types of API testing.
🔹 Smoke Testing
This is done after API development is complete. Simply validate if the APIs are working and nothing breaks.
🔹 Functional Testing
This creates a test plan based on the functional requirements and compares the results with the expected results.
🔹 Integration Testing
This test combines several API calls to perform end-to-end tests. The intra-service communications and data transmissions are tested.
🔹 Regression Testing
This test ensures that bug fixes or new features shouldn’t break the existing behaviors of APIs.
🔹 Load Testing
This tests applications’ performance by simulating different loads. Then we can calculate the capacity of the application.
🔹 Stress Testing
We deliberately create high loads to the APIs and test if the APIs are able to function normally.
🔹 Security Testing
This tests the APIs against all possible external threats.
🔹 UI Testing
This tests the UI interactions with the APIs to make sure the data can be displayed properly.
🔹 Fuzz Testing
This injects invalid or unexpected input data into the API and tries to crash the API. In this way, it identifies the API vulnerabilities.
--
Subscribe to our newsletter to download the 𝐡𝐢𝐠𝐡-𝐫𝐞𝐬𝐨𝐥𝐮𝐭𝐢𝐨𝐧 𝐜𝐡𝐞𝐚𝐭 𝐬𝐡𝐞𝐞𝐭. After signing up, find the download link on the success page: bytebytego.ck.page/da4d43d0e…
Melih retweeted
If you want to learn system design and Kubernetes, read these famous engineering blog posts from top companies (OpenAI, Airbnb, Netflix, Stripe, etc)
I spent hours digging for them so you don't have to:
Melih retweeted
Top 12 Tips for API Security
- Use HTTPS
- Use OAuth2
- Use WebAuthn
- Use Leveled API Keys
- Authorization
- Rate Limiting
- API Versioning
- Whitelisting
- Check OWASP API Security Risks
- Use API Gateway
- Error Handling
- Input Validation
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
Melih retweeted
Consistent Hashing Explained Simply
Let's break down consistent hashing in a way that's easy to get. It's a handy technique for distributing data evenly across servers. And if you're more of a visual learner, don't miss the attached video which brings this concept to life.
Here's how it works: We don't just hash our data keys; we also hash the server names using the same method. This puts everything on a scale, known as the hash space, which we think of as a big circular ring.
So, imagine we've got a few servers. We hash them and place them on this ring. We do the same with our data, hashing it by key. To figure out where to store a piece of data, we travel clockwise on the ring from where the data lands until we bump into a server. Like, data key 0 might end up on server 0, and key 1 on server 1.
Adding a new server? Only the data near the new server needs to shift. And if a server has to go? Only the data it was holding needs a new spot.
But there's a little challenge: sometimes, data doesn't spread out evenly. The fix? Virtual nodes. They're like mini-replicas of a server placed around the ring. The more virtual nodes we have, the better the balance. But there's a catch: more virtual nodes mean more memory usage for tracking them, and it can make the whole system a bit more complex to manage.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
Melih retweeted
10 Algorithms for System Design Interviews by @AlexYu
read - bit.ly/3P3eqMN
Melih retweeted
𝗛𝗼𝘄 𝗧𝗼 𝗕𝗲𝗰𝗼𝗺𝗲 𝗔 𝗚𝗿𝗲𝗮𝘁 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿?
As we all know, being a software engineer is not easy. You need to know a lot and constantly improve yourself. But, during my career, I found what differ good and great software engineers, and here are recommendations on how to become one:
𝟭. 𝗠𝗮𝘀𝘁𝗲𝗿 𝗼𝗻𝗲 𝗽𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗹𝗮𝗻𝗴𝘂𝗮𝗴𝗲 𝗶𝗻 𝗱𝗲𝗽𝘁𝗵
Take one programming language and go in-depth with it. Learn everything you can and be a master of it. Some good languages you can select today are Python, Java, C#, and Rust, ...
𝟮. 𝗟𝗲𝗮𝗿𝗻 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿𝗶𝗻𝗴 𝗰𝗼𝗻𝗰𝗲𝗽𝘁𝘀
When you master a programming language, its syntax, semantics, and constructs, the next thing is to learn different software engineering concepts, such as:
- Software architecture
- Software design
- Design patterns
- Clean code
- SOLID, DRY, KISS, and YAGNI principles
𝟯. 𝗟𝗲𝗮𝗿𝗻 𝘁𝗵𝗲 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗦𝗗𝗟𝗖 𝗽𝗿𝗼𝗰𝗲𝘀𝘀
Try to understand the complete software development process, from requirements to deployment. Learn about Agile methodologies, DevOps, and Quality assurance.
Try to work on different projects; on more projects you work you will learn new stuff and grow.
𝟰. 𝗕𝗲 𝗮 𝗽𝗿𝗼𝗱𝘂𝗰𝘁-𝗺𝗶𝗻𝗱𝗲𝗱 𝗲𝗻𝗴𝗶𝗻𝗲𝗲𝗿
When working on your project, don't settle just with specs; jump to implement it. Think about other ideas and approach your product manager with them. Try to understand the complete system, but also how business works. Be an end-to-end product feature owner.
𝟱. 𝗜𝗺𝗽𝗿𝗼𝘃𝗲 𝘆𝗼𝘂𝗿 𝗰𝗼𝗺𝗺𝘂𝗻𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗮𝗻𝗱 𝘀𝗼𝗳𝘁-𝘀𝗸𝗶𝗹𝗹𝘀
Be respectful of others, communicate clearly, and be humble. Being kind has no financial cost, but its effects are immeasurable.
Try pair/mob programming. Talk with people outside engineering, grab a coffee or lunch, or do a hallway chat.
𝟲. 𝗟𝗲𝗮𝗿𝗻 𝗶𝗻𝘁𝗲𝗻𝘁𝗶𝗼𝗻𝗮𝗹𝗹𝘆
We need to learn, but the trick is when and how. Don't just learn things because this is inefficient. We need to learn intentionally, just before we need it, and this will make the biggest impact.
𝟳. 𝗪𝗼𝗿𝗸 𝘄𝗶𝘁𝗵 𝘀𝗼𝗺𝗲𝗼𝗻𝗲 𝗺𝗼𝗿𝗲 𝗲𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲𝗱
The fastest way to progress in your career is to find a mentor. He can help you find your gaps and show you some new opportunities. A mentor can be found inside an organization or outside (check specialized services).
𝟴. 𝗨𝘀𝗲 𝗴𝗼𝗼𝗱 𝗲𝗻𝗴𝗶𝗻𝗲𝗲𝗿𝗶𝗻𝗴 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀
Learn and follow good practices, such as:
- Using version control
- Write your tests properly (check the test pyramid)
- Learn how to refactor
- Learn TDD
- Code reviews
- DevOps mindset
Also, learn your IDE and all the important shortcuts you need. Debugger too.
𝟵. 𝗨𝘀𝗲 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝘃𝗶𝘁𝘆 𝘁𝗲𝗰𝗵𝗻𝗶𝗾𝘂𝗲𝘀
To be more productive, we need to learn different techniques, such as:
- Prioritization (check Eisenhower matrix)
- Time management (check Pomodoro)
- Concentration (check Deep focus / no distractions)
- Note taking (check Notion)
This will help you to keep in your mind the only important things you need now for the current task.
𝟭𝟬. 𝗕𝗲 𝗽𝗿𝗼𝗮𝗰𝘁𝗶𝘃𝗲
Also, don't forget about a can-do attitude and proactiveness. An important pillar of every great software engineer.
Ultimately, this is still insufficient, even if we know a lot. What does it take to be a great engineer? It takes time, fails, and experiments. So go and 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗲, 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗲, 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗲!
#softwareengineering
Melih retweeted
Evliya Çelebi’nin gezip gördüğü yerler Google Harita üzerinde pinlenmiş. Her bir yere tıklandığında Evliya Çelebi’nin o yer hakkında Seyahatnamesi’ndeki notlarına da erişim var. 🗺️📍
google.com/maps/d/viewer?mid…
Allah yapanlardan razı olsun.
Melih retweeted
New blog! We share how we improved the daily edit-build-run developer experience using DevPods, Uber’s remote development environment. We cover the challenges, pain points, our architecture, and lastly the future of remote development at Uber.
read more: uber.com/en-US/blog/devpod-i…
Melih retweeted
Yurtdışı yazılım mülakatlarına hazırlanıyorsanız şurada system design konusunda güzel bir kaynak var. Mülakat deneyimleri ile anlatmış
us.teamblind.com/s/4yufM3RY
Melih retweeted
10 Essential System Design Concepts for Interviews
➡️Load balancers
➡️APIs
➡️Caches
➡️Databases
➡️Network Protocols
➡️Message queues
➡️CDNs
➡️High-level details about ML and Big data
➡️CAP Theorem
➡️Monitoring and analytics
Melih retweeted
Merhaba arkadaşlar. Amazon mülakat tecrübemi çok soran oldu (2 kişi). O yüzden flood yapayım dedim. Baştan söylemek istiyorum. Yazdıklarım benim tecrübelerime dayalı olacak. Yani nasıl hazırlanılır fikrinden ziyade ben ne yaşadım? Buna göre yazacağım.
Melih retweeted
I just put all my technical threads in one big PDF. It has 75 topics and 158 pages!
Here are some sample topics:
🔹 Why is Redis fast?
🔹 Design Google Maps
🔹 How does HTTPs work?
The PDF Link is in the first post of my newsletter: https://xitter.gq/t.co/PczMAd8Jdb
Hope it's helpful.
Melih retweeted
Popular interview question: What are database 𝐢𝐬𝐨𝐥𝐚𝐭𝐢𝐨𝐧 𝐥𝐞𝐯𝐞𝐥𝐬? What are they used for?
Database isolation allows a transaction to execute as if there are no other concurrently running transactions.
The diagram below illustrates four isolation levels.
Melih retweeted
You can probably optimize your @Java programs to run 2-10x faster, by focusing on the bottlenecks.
Those bottlenecks are not where you think they are.
Use free tools such as async-profiler, VisualVM, JFR and vmstat to find them.
Let me show you how. 🧵
Melih retweeted
Yeni Kitap Çekilişi!
Dünyaca ünlü Türk tarihçi Faruk Tabak'ın ekolojik tarihin öncüsü "Solan Akdeniz, 1550-1870: Tarihsel Coğrafya Açısından Bir Yaklaşım" eserini bu tiviti RT'leyen üç takipçimize hediye ediyoruz.
İncelemek için telemakkitap.com/post/7-sola…
Çekiliş: Perşembe 21:00.
Hey everyone 👋 I will be attending online Trendyol Tech Meetup - Secrets of a Strong Engineering Culture event via @KommunityTR Join us! - kommunity.com/trendyol/event…
3






















