Efrain Goycochea (@efrainbss) profile picture
Joined October 2011
I've been using Clean Architecture for 5+ years. Here's why I think it's amazing. ๐Ÿ‘‡ The biggest pain point with enterprise applications is a lack of structure. Every project uses a different approach, making it difficult to transfer technical knowledge from one system to another. Thankfully, there are proven approaches to solving this problem. My favorite? Clean Architecture. Clean architecture isn't revolutionary. You need to follow one crucial principle: inner layers can't reference outer layers. Essentially, we're applying dependency inversion on the application level. Inner layers define abstractions, and outer layers implement these abstractions. You can package Clean Architecture across multiple projects. This is the most common approach with a Domain, Application, Infrastructure, and Presentation project. However, you can also group components for a single feature together. This is called a vertical slice, and it improves the cohesion of your design. What are the benefits of Clean architecture? - Modularity - Separation of concerns - Testability of business logic - Improved team productivity - Loose coupling of components There's no "right" way to build software. You should decide what works for you. Clean architecture works well for me. I've used it to build excellent products. And I will continue to use it and talk about it. What do you think about Clean architecture? --- Subscribe to my weekly newsletter to accelerate your .NET skills: milanjovanovic.tech/?utm_souโ€ฆ
15
163
7
838
103,814
Efrain Goycochea retweeted
My Favorite 10 Books for Software Developers General Advice 1 - The Pragmatic Programmer by Andrew Hunt and David Thomas 2 - Code Complete by Steve McConnell: Often considered a bible for software developers, this comprehensive book covers all aspects of software development, from design and coding to testing and maintenance. Coding 1 - Clean Code by Robert C. Martin 2 - Refactoring by Martin Fowler Software Architecture 1 - Designing Data-Intensive Applications by Martin Kleppmann 2 - System Design Interview (our own book :)) Design Patterns 1 - Design Patterns by Eric Gamma and Others 2 - Domain-Driven Design by Eric Evans Data Structures and Algorithms 1 - Introduction to Algorithms by Cormen, Leiserson, Rivest, and Stein 2 - Cracking the Coding Interview by Gayle Laakmann McDowell Over to you: What is your favorite book? โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
23
612
14
2,681
302,673
Efrain Goycochea retweeted
You wouldn't last an hour in the asylum where they raised me
90
25
11
583
45,567
Efrain Goycochea retweeted
Encoding vs Encryption vs Tokenization. Encoding, encryption, and tokenization are three distinct processes that handle data in different ways for various purposes, including data transmission, security, and compliance. In system designs, we need to select the right approach for handling sensitive information. ๐Ÿ”น Encoding Encoding converts data into a different format using a scheme that can be easily reversed. Examples include Base64 encoding, which encodes binary data into ASCII characters, making it easier to transmit data over media that are designed to deal with textual data. Encoding is not meant for securing data. The encoded data can be easily decoded using the same scheme without the need for a key. ๐Ÿ”น Encryption Encryption involves complex algorithms that use keys for transforming data. Encryption can be symmetric (using the same key for encryption and decryption) or asymmetric (using a public key for encryption and a private key for decryption). Encryption is designed to protect data confidentiality by transforming readable data (plaintext) into an unreadable format (ciphertext) using an algorithm and a secret key. Only those with the correct key can decrypt and access the original data. ๐Ÿ”น Tokenization Tokenization is the process of substituting sensitive data with non-sensitive placeholders called tokens. The mapping between the original data and the token is stored securely in a token vault. These tokens can be used in various systems and processes without exposing the original data, reducing the risk of data breaches. Tokenization is often used for protecting credit card information, personal identification numbers, and other sensitive data. Tokenization is highly secure, as the tokens do not contain any part of the original data and thus cannot be reverse-engineered to reveal the original data. It is particularly useful for compliance with regulations like PCI DSS. โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
10
300
5
1,161
65,791
Efrain Goycochea retweeted
Single Sign-On (SSO) explained in simple terms. ๐—ž๐—ฒ๐˜† ๐—ฃ๐—น๐—ฎ๐˜†๐—ฒ๐—ฟ๐˜€ ๐—ถ๐—ป ๐—ฆ๐—ฆ๐—ข 1. User - The individual seeking access to applications 2. Identity Provider (IDP) - Authenticates users (e.g. Google, Facebook) 3. Application - The software or service the user wants to access ๐—•๐—ฒ๐—ป๐—ฒ๐—ณ๐—ถ๐˜๐˜€ ๐—ผ๐—ณ ๐—ฆ๐—ฆ๐—ข - Simplifies access with one set of credentials - Enhances user experience - Reduces password fatigue - Centralizes security and access management - Improves security - Streamlines access control - Simplifies compliance reporting - Allows seamless integration ๐—›๐—ผ๐˜„ ๐—ฆ๐—ฆ๐—ข ๐—ช๐—ผ๐—ฟ๐—ธ๐˜€ - User tries to log into an application - Application redirects user to SSO/IDP - IDP authenticates user - IDP issues authenticated token - Token sent back to browser - Browser presents token to application - Application grants access without re-entering credentials This streamlined process enables single login access to multiple applications, improving convenience and security. Over to you: With SSO facilitating access across various platforms, what measures do you consider essential to maintain the integrity and security of user identities? โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages):
3
193
2
765
42,711
Building real-time messaging in .NET? I use SignalR. It's silly how fast you can build something functional. 3 steps to start using SignalR: - Create the Hub class - Register SignalR services - Map and expose the hub endpoint And you're ready to connect to the Hub using the client library. But there's one thing I dislike with the default Hub implementation. It's not strongly typed. The base Hub class uses the SendAsync method to send messages to connected clients. You have to use strings to specify client-side methods to invoke. So, it's easy to make a mistake. There's also nothing enforcing which parameters you use. However, SignalR supports strongly typed hubs that aim to solve this. You will need to: - Define a client interface - Implement the generic Hub class Want to learn more about using SignalR in .NET? Start here: milanjovanovic.tech/blog/addโ€ฆ
4
46
1
239
40,661
Efrain Goycochea retweeted
El PM, usando su MacBook Pro M3 Max para crear tickets en Jira y preguntar โ€œcรณmo vasโ€
50
813
116
6,870
563,622
Microsoft just revealed its secret project - .NET Aspire. Here's everything you need to know. ๐Ÿ‘‡ What is .NET Aspire? .NET Aspire is an opinionated, cloud-ready stack for building observable, production-ready, distributed applications. .NET Aspire helps with: - Orchestration - Components - Tooling Orchestration refers to coordinating and managing various elements within a cloud-native application. .NET Aspire streamlines the configuration and interconnection of different parts of your cloud-native app. It provides useful abstractions for managing: - Service discovery - Environment variables - Container configurations Without you having to handle low-level implementation details. My favorite feature is the built-in Aspire dashboard. You can use it to monitor: - Containers - Structured logs - Applications traces - Applications metrics But there are even more fantastic things inside. What about deploying an Aspire application? NET Aspire applications are built with cloud-agnostic principles in mind. This allows you to deploy Aspire apps across various platforms supporting .NET and containers. With .NET Aspire (Preview 1), you can deploy to Azure Container Apps. This is doable through a few simple commands using the Azure CLI. I'm excited about the Aspire project and will create more content about it on my YouTube channel and newsletter. If you enjoyed this, you will love The .NET weekly newsletter. More than 32,000+ engineers already read it. Subscribe here: milanjovanovic.tech/ What's your first impression of .NET Aspire?
6
93
2
474
106,551
๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐˜๐—ต๐—ฒ ๐——๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—•๐—ฒ๐˜๐˜„๐—ฒ๐—ฒ๐—ป ๐—œ๐—ป๐—ป๐—ฒ๐—ฟ, ๐—Ÿ๐—ฒ๐—ณ๐˜, ๐—ฅ๐—ถ๐—ด๐—ต๐˜, ๐—ฎ๐—ป๐—ฑ ๐—™๐˜‚๐—น๐—น ๐—๐—ผ๐—ถ๐—ป? ๐Ÿ”น (INNER) JOIN - return all rows with matching values in both tables. ๐Ÿ”น LEFT (OUTER) JOIN - return all rows from the left table and those that meet the condition from the right table. ๐Ÿ”น RIGHT (OUTER) JOIN - return all rows from the right table and those that meet the condition from the left table. ๐Ÿ”น FULL (OUTER) JOIN - return all rows with a match in either table. Image credits: Andreas Martinson. #technology #softwareengineering #data #techworldwithmilan #sql
19
645
19
3,077
432,691
Interruption Hell
20
583
57
3,260
243,951
Efrain Goycochea retweeted
CI/CD Pipeline Explained to Kids Section 1 - SDLC with CI/CD The software development life cycle (SDLC) consists of several key stages: development, testing, deployment, and maintenance. CI/CD automates and integrates these stages to enable faster, more reliable releases. When code is pushed to a git repository, it triggers an automated build and test process. End-to-end (e2e) test cases are run to validate the code. If tests pass, the code can be automatically deployed to staging/production. If issues are found, the code is sent back to development for bug fixing. This automation provides fast feedback to developers and reduces risk of bugs in production. Section 2 - Difference between CI and CD Continuous Integration (CI) automates the build, test, and merge process. It runs tests whenever code is committed to detect integration issues early. This encourages frequent code commits and rapid feedback. Continuous Delivery (CD) automates release processes like infrastructure changes and deployment. It ensures software can be released reliably at any time through automated workflows. CD may also automate the manual testing and approval steps required before production deployment. Section 3 - CI/CD Pipeline A typical CI/CD pipeline has several connected stages: - Developer commits code changes to source control - CI server detects changes and triggers build - Code is compiled, tested (unit, integration tests) - Test results reported to developer - On success, artifacts are deployed to staging environments - Further testing may be done on staging before release - CD system deploys approved changes to production โ€“ Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
10
455
6
1,699
169,194
๐—ฆ๐—ผ๐—ณ๐˜๐˜„๐—ฎ๐—ฟ๐—ฒ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ != ๐——๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—ฒ๐—ฟ Software Engineer == Problem Solver Don't attack problems with code. Try first to understand them from a business perspective and then a technical perspective. When you do this, make a plan for how to solve it. Try to solve without coding.ย The best code is not code. If you must code, then do it. Remember, ๐—ฐ๐—ผ๐—ฑ๐—ฒ ๐—ถ๐˜€ ๐—ฎ ๐—น๐—ถ๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†, ๐—ป๐—ผ๐˜ ๐—ฎ๐—ป ๐—ฎ๐˜€๐˜€๐—ฒ๐˜. #technology #softwareengineering #programming #developers #coding
127
938
80
5,397
792,092
Esta serie tiene dedicatoria no a una persona sino a un sรญmbolo, el arqui XD 1/23
23
68
15
426
81,514
What is the difference between ๐—Ÿ๐—ฎ๐—บ๐—ฏ๐—ฑ๐—ฎ ๐—ฎ๐—ป๐—ฑ ๐—ž๐—ฎ๐—ฝ๐—ฝ๐—ฎ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ๐˜€? Lambda and Kappa are both Data architectures proposed to solve movement of large amounts of data for reliable Online access. The most popular architecture has been and continues to be Lambda. However, with Stream Processing becoming more accessible you will be hearing a lot more of Kappa in the near future. Letโ€™s see how they are different. ๐—Ÿ๐—ฎ๐—บ๐—ฏ๐—ฑ๐—ฎ. โžก๏ธ Ingestion layer is responsible for collecting the raw data and duplicating it for further Real Time and Batch processing separately. โžก๏ธ Consists of 3 additional main layers: ๐Ÿ‘‰ Speed or Stream - Raw Data here is coming in Real Time and is processed by a Stream Processing Framework (e.g. Flink) then passed to the Serving layer to create Real Time Views for low latency near to Real Time Data access. ๐Ÿ‘‰ Batch - Batch ETL Jobs with batch processing Frameworks (e.g. Spark) are run against raw Data to create reliable Batch Views for Offline Historical Data access. ๐Ÿ‘‰ Serving - this is where the processed Data is exposed to the end user. Latest Real Time Data can be accessed from Real Time Views or combined with Batch Views for full history. Historical Data can be accessed from Batch Views. โ—๏ธ Processing code is duplicated for different technologies in Batch and Speed Layers causing logic divergence. โ—๏ธ Compute resources are duplicated. โ—๏ธ Need to manage two Infrastructures. โœ… Distributed Batch Storage is reliable and scalable, even if the System crashes it is easily recoverable without errors. ๐—ž๐—ฎ๐—ฝ๐—ฝ๐—ฎ. โžก๏ธ Treats both Batch and Real Time Workloads as a Stream Processing problem. โžก๏ธ Uses Speed Layer only to prepare data for Real Time and Batch Access. โžก๏ธ Consists of only 2 main layers: ๐Ÿ‘‰ Speed or Stream - similar to Lambda but (optionally) often contains Tiered Storage which means that all of Data coming into the system is stored indefinitely in different Storage Layers. E.g. S3 or GCS for historical data and on disk log for hot data. ๐Ÿ‘‰ Serving - same as Lambda but all transformations that are performed in Speed Layer are never duplicated in Batch Layer. โ—๏ธ Some transformations are hard to perform in Speed Layer (e.g. complex joins) and are eventually pushed to Batch storage for implementation. โ—๏ธ Requires strong skills in Stream Processing. โœ… Data is processed once with a single Stream Processing Engine. โœ… Only need to manage single set of Infrastructure. Have you dealt with Kappa architecture in your day-to-day? What are your thoughts around it? Let me know in the comments ๐Ÿ‘‡ -------- Follow me to upskill in #MLOps, #MachineLearning, #DataEngineering, #DataScience and overall #Data space. Also hit ๐Ÿ””to stay notified about new content. ๐——๐—ผ๐—ปโ€™๐˜ ๐—ณ๐—ผ๐—ฟ๐—ด๐—ฒ๐˜ ๐˜๐—ผ ๐—น๐—ถ๐—ธ๐—ฒ ๐Ÿ’™, ๐˜€๐—ต๐—ฎ๐—ฟ๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐—ฐ๐—ผ๐—บ๐—บ๐—ฒ๐—ป๐˜! Join a growing community of Data Professionals by subscribing to my ๐—ก๐—ฒ๐˜„๐˜€๐—น๐—ฒ๐˜๐˜๐—ฒ๐—ฟ.
17
167
1
667
72,969
Youtube has 50,934,583 channels. Here are 8 channels that will teach you more skills than a 4 year degree:
105
3,283
46
10,223
2,390,777
Efrain Goycochea retweeted
๐Ÿš€ Backend Developer Roadmap for .NET Developers. (2023 Edition) Follow this thread along for the entire roadmap. #dotnet #developer #backend
29
196
7
645
76,039
Efrain Goycochea retweeted
/1 How does Docker work? A comparison of Docker-based and non-Docker-based development is shown below.
36
504
7
2,364
297,439
Efrain Goycochea retweeted
Microsoft is dropping Twitter from its advertising platform on April 25th. It comes after Twitter announced fees to use its API, with access starting at $42,000 a month
135
531
164
3,882
860,627
Pide a un programador que revise 20 lรญneas de cรณdigo y te dirรก que encontrรณ 10 errores. Pide al mismo programador que revise 300 lรญneas de cรณdigo y te dirรก que todo estรก ok.
40
278
39
3,088
227,917
Efrain Goycochea retweeted
Spring is a great time to learn new skills or refresh existing ones. My two .NET 7 books were written as a pair. #dotnet #csharp #dotnet7
4
36
3,699