Afif Dev (@afif_dev) header
Afif Dev (@afif_dev) profile picture

🧑🏻‍💻 HTML Developer

virtual env (homeless)
Joined January 2022
Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)Photo by Afif Dev (@afif_dev)
Tech bro looking for a job in early 2024 is like... #hireme #TechJobs #php #html #techlayoffs #layoffs
1
797
Afif Dev retweeted
If you'd rather run things locally, you can. It's a good way to understand the internals, and it keeps your data on your own machine. Here are 5 easy ways to run LLMs locally.
How to Run LLMs Locally
3
19
118
19,000
Afif Dev retweeted
FAANG is dead. Now MANGOS is dominating the world.
92
4
3
166
13,684
Vibe coding✨️... for real?
2
15
Afif Dev retweeted
What does API gateway do?
5
148
1
878
97,117
Logging, tracing and metrics are 3 pillars of system observability. The diagram below shows their definitions and typical architectures. 🔹 Logging Logging records discrete events in the system. For example, we can record an incoming request or a visit to databases as events. It has the highest volume. ELK (Elastic-Logstash-Kibana) stack is often used to build a log analysis platform. We often define a standardized logging format for different teams to implement, so that we can leverage keywords when searching among massive amounts of logs. 🔹 Tracing Tracing is usually request-scoped. For example, a user request goes through the API gateway, load balancer, service A, service B, and database, which can be visualized in the tracing systems. This is useful when we are trying to identify the bottlenecks in the system. We use OpenTelemetry to showcase the typical architecture, which unifies the 3 pillars in a single framework. 🔹 Metrics Metrics are usually aggregatable information from the system. For example, service QPS, API responsiveness, service latency, etc. The raw data is recorded in time-series databases like InfluxDB. Prometheus pulls the data and transforms the data based on pre-defined alerting rules. Then the data is sent to Grafana for display or to the alert manager which then sends out email, SMS, or Slack notifications or alerts. 🔹 Over to you: Which tools have you used for system monitoring? -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/bbg-social
5
146
2
711
66,048
JavaScript 💔
71
147
41
1,402
83,750
Afif Dev retweeted
15 Open-Source Projects That Changed the World
24
340
10
2,042
157,717
Oauth 2.0 Explained With Simple Terms. OAuth 2.0 is a powerful and secure framework that allows different applications to securely interact with each other on behalf of users without sharing sensitive credentials. The entities involved in OAuth are the User, the Server, and the Identity Provider (IDP). What Can an OAuth Token Do? When you use OAuth, you get an OAuth token that represents your identity and permissions. This token can do a few important things: Single Sign-On (SSO): With an OAuth token, you can log into multiple services or apps using just one login, making life easier and safer. Authorization Across Systems: The OAuth token allows you to share your authorization or access rights across various systems, so you don't have to log in separately everywhere. Accessing User Profile: Apps with an OAuth token can access certain parts of your user profile that you allow, but they won't see everything. Remember, OAuth 2.0 is all about keeping you and your data safe while making your online experiences seamless and hassle-free across different applications and services. Over to you: Imagine you have a magical power to grant one wish to OAuth 2.0. What would that be? Maybe your suggestions actually lead to OAuth 3. -- Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/bbg-social
3
215
4
1,046
87,166
Life is Short, Use Dev Tools
20
533
12
3,344
312,362
Replying to @rafiziramli
@rafiziramli bila masa rakyat Malaysia setuju data diambil untuk kegunaan PADU tanpa pengetahuan dan persetujuan?
1
1
107
@rafiziramli mana pergi #PADU? Yang rakyat nampak kos diesel makin naik subsidi ciput dan kos service & barang meningkat.
1
59
Afif Dev retweeted
Why is Nginx so popular?
9
192
4
1,173
150,350
Afif Dev retweeted
Forward Proxy vs Reverse Proxy A forward proxy (or just proxy) is a server that sits between user devices and the internet. A forward proxy is commonly used for: - Protecting client privacy and anonymity - Avoiding browsing restrictions - Blocking access to certain content A reverse proxy is a server that accepts requests from clients, forwards them to backend web servers, and returns the responses to the clients. The clients interact with the reverse proxy as if it was the origin server. Reverse proxies are good for: - Protecting backend servers from direct exposure to clients - Load balancing requests across multiple backend servers - Caching static content closer to clients for faster delivery - Terminating SSL connections and offloading encryption/decryption tasks from the backend servers The key difference is that a forward proxy acts on behalf of clients, while a reverse proxy acts on behalf of servers. Forward proxies handle outbound requests to external servers, while reverse proxies handle inbound requests coming from clients. – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/496keA7
2
62
278
19,001
A nice cheat sheet of different monitoring infrastructure in cloud services. This cheat sheet offers a concise yet comprehensive comparison of key monitoring elements across the three major cloud providers and open-source / 3rd party tools. Let's delve into the essential monitoring aspects covered: - Data Collection: Gather information from diverse sources to enhance decision-making. - Data Storage: Safely store and manage data for future analysis and reference. - Data Analysis: Extract valuable insights from data to drive informed actions. - Alerting: Receive real-time notifications about critical events or anomalies. - Visualization: Present data in a visually comprehensible format for better understanding. - Reporting and Compliance: Generate reports and ensure adherence to regulatory standards. - Automation: Streamline processes and tasks through automated workflows. - Integration: Seamlessly connect and exchange data between different systems or tools. - Feedback Loops: Continuously refine strategies based on feedback and performance analysis. Over to you: How do you prioritize and leverage these essential monitoring aspects in your domain to achieve better outcomes and efficiency? – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
7
104
1
527
66,957
REST API Vs. GraphQL When it comes to API design, REST and GraphQL each have their own strengths and weaknesses. REST - Uses standard HTTP methods like GET, POST, PUT, DELETE for CRUD operations. - Works well when you need simple, uniform interfaces between separate services/applications. - Caching strategies are straightforward to implement. - The downside is it may require multiple roundtrips to assemble related data from separate endpoints. GraphQL - Provides a single endpoint for clients to query for precisely the data they need. - Clients specify the exact fields required in nested queries, and the server returns optimized payloads containing just those fields. - Supports Mutations for modifying data and Subscriptions for real-time notifications. - Great for aggregating data from multiple sources and works well with rapidly evolving frontend requirements. - However, it shifts complexity to the client side and can allow abusive queries if not properly safeguarded - Caching strategies can be more complicated than REST. The best choice between REST and GraphQL depends on the specific requirements of the application and development team. GraphQL is a good fit for complex or frequently changing frontend needs, while REST suits applications where simple and consistent contracts are preferred. – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
1
124
4
496
42,836
weAllNeedBackupPlans reddit.com/r/programmerhumor…
15
120
18
924
69,265
Screen of the day around the globe
Replying to @elonmusk
Microsoft Users right now
13
Nmap
9
394
2
2,243
304,732