<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anthony Rodrigues on Medium]]></title>
        <description><![CDATA[Stories by Anthony Rodrigues on Medium]]></description>
        <link>https://medium.com/@anthony-rodrigues?source=rss-c8b50b03336e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dhrJtsvp-7CNn_xdU4PiYw.jpeg</url>
            <title>Stories by Anthony Rodrigues on Medium</title>
            <link>https://medium.com/@anthony-rodrigues?source=rss-c8b50b03336e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:31:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anthony-rodrigues/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Apache Iceberg: Revolutionizing Data Lakes with Git-like Features]]></title>
            <link>https://anthony-rodrigues.medium.com/apache-iceberg-revolutionizing-data-lakes-with-git-like-features-e731f51d1f7e?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e731f51d1f7e</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[apache-iceberg]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 03:00:55 GMT</pubDate>
            <atom:updated>2025-01-18T03:00:55.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN5TvMQ4OwBYwX9ocS3HCA.jpeg" /></figure><p>Imagine a world where your data lake is as easy to navigate as a well-organized library, where every piece of information is instantly accessible, and where managing petabytes of data is as simple as managing megabytes.<br>This isn’t a far-off dream, it’s the reality that Apache Iceberg is bringing to the world of big data.<br>You’re about to discover how this open-source table format is not just evolving data lakes but completely revolutionizing them.</p><h3><strong>The Genesis of Apache Iceberg</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OlVMXRYRX7zW6-RIZaf1w.jpeg" /></figure><p>Iceberg was born from the innovative minds of Ryan Blue and Daniel Weeks at Netflix in 2017, and later donated to the Apache Software Foundation.</p><p>Apache Iceberg was designed to address the limitations of traditional data lake formats like Apache Hive, such as tracking data at the folder level, costly schema evolution, and more.</p><p><strong>But what makes it so unique?<br></strong>Let’s explore its core architecture and features that are causing waves in the data engineering community.</p><h3>Iceberg Architecture</h3><p>Iceberg’s architecture consists of three primary layers focused on control and efficient data management:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ofRuj1Ap8TQTe5IDSNc2Q.png" /><figcaption>Iceberg Architecture — <a href="https://www.dremio.com/resources/guides/apache-iceberg-an-architectural-look-under-the-covers/">https://www.dremio.com/resources/guides/apache-iceberg-an-architectural-look-under-the-covers/</a></figcaption></figure><ol><li><strong>Iceberg Catalog</strong>: This layer tracks tables and points to the latest metadata location, providing a consistent view of the table’s metadata. This is where tools like AWS Glue Catalog, Polaris, Dremio, and others will work.</li><li><strong>Metadata Layer</strong>: Comprising metadata files, manifest lists, and manifest files, this layer is the backbone of Iceberg’s efficiency.</li><li><strong>Data Layer</strong>: Where the data resides in formats like Parquet, Avro, or ORC. This is the layer of storage solutions, such as AWS S3, GCP GCS, Azure Blob Storage, etc.</li></ol><h3>Iceberg Features That Make a Difference</h3><p>To revolutionize the data lake game, a tool needs more than just a great architecture; it also needs features that stand out, and Apache Iceberg has many of them. I&#39;m gonna list some of them:</p><ol><li><strong>ACID Transactions</strong>: Iceberg supports ACID (Atomicity, Consistency, Isolation, Durability) transactions, ensuring data consistency even in the face of failures at the row level. This is a game-changer for data engineers dealing with mission-critical data. No more insert overwrite.</li><li><strong>Schema Evolution</strong>: Gone are the days of costly table rewrites for schema changes. Iceberg supports in-place schema evolution, allowing you to add, drop, rename, and reorder columns without data migration. This flexibility is crucial in today’s fast-paced data environments.</li><li><strong>Time Travel and Rollback</strong>: With Iceberg, you can query data as it exists at any specific point in time. This feature is invaluable for auditing, debugging, and ensuring compliance with data regulations. Like Git allows you to browse your code’s history, Iceberg maintains snapshots of table states. This means you can query data as it existed at any point in time.</li><li><strong>Branching and Tagging: </strong>Experimenting with a new data pipeline? Iceberg lets you create independent branches, just like in Git. You can also tag specific versions for easy reference.</li></ol><h3><strong>Benefits for the business</strong></h3><p>These features impact the business in different ways with real benefits:</p><ul><li><strong>Data Reliability</strong>: ACID transactions ensure data consistency across operations.</li><li><strong>Cost Savings</strong>: Efficient storage and query performance reduce cloud, storage, and compute costs.</li><li><strong>Scalability</strong>: Designed for petabyte-scale datasets, Iceberg grows with your data needs.</li></ul><h3>The Impact on Data Engineering</h3><p>We already know that Iceberg has excellent architecture and many benefits for the business, but what about data engineers? It has plenty as well.</p><ol><li><strong>Improved Query Performance</strong>: Iceberg’s advanced metadata management and efficient partitioning lead to significantly faster query execution.</li><li><strong>Simplified Data Management</strong>: The Git-like versioning capabilities make tracking changes, collaborating, and maintaining data integrity easier.</li><li><strong>Cloud-Native Design</strong>: Iceberg is built for modern cloud object storage systems, making it ideal for organizations transitioning to or already in the cloud.</li><li><strong>Multi-Engine Support</strong>: Its compatibility with various processing engines like Spark, Trino, and Flink offers unprecedented flexibility.</li></ol><p>Ok, I learned the basics of Apache Iceberg. What should I do next?</p><h3>Ignite the Data Revolution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2KuRANXyOFEQUKVsh8_kg.jpeg" /></figure><p>You’ve just glimpsed the future of data lake management. Apache Iceberg isn’t just another tool; it’s a paradigm shift reshaping our industry.</p><p>As data engineers, we’re at the forefront of this transformation.</p><p>Here’s how you can ride this wave of innovation:</p><ul><li><strong>Dive In</strong>: Start small. Pick a non-critical dataset and migrate it to Iceberg. Use this to experience firsthand the power of Git-like versioning and lightning-fast queries.</li><li><strong>Spread the Word</strong>: Share your Iceberg experiences with your team. Be the catalyst that sparks curiosity and drives adoption in your organization.</li><li><strong>Join the Movement</strong>: The Apache Iceberg community is vibrant and growing. Engage in discussions, contribute your insights, and help shape the future of this game-changing technology.</li><li><strong>Elevate Your Skills</strong>: As Iceberg gains traction, expertise in this technology will be in high demand. Position yourself at the cutting edge by mastering Iceberg now.</li></ul><h3>The Future is Iceberg</h3><p>As we move further into the cloud era, Iceberg’s design principles are particularly well-suited for modern data architectures. It’s built to work seamlessly with cloud object storage systems like S3, Azure Blob, and GCS. Its multi-engine support means you’re not locked into a single processing framework.</p><p>In conclusion, Apache Iceberg represents a significant leap forward in data lake technology. Its Git-like versioning capabilities and modern data management features make it a clear choice for organizations dealing with large-scale data operations. As we look to the future of big data, Iceberg is positioned to play a central role in shaping how we store, manage, and analyze our most valuable asset: data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e731f51d1f7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Queried Millions of Rows in Under a Second with AWS Lambda and DuckDB]]></title>
            <link>https://aws.plainenglish.io/achieving-sub-second-data-retrieval-with-aws-lambda-and-duckdb-an-overview-ceb6d1e36b1d?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceb6d1e36b1d</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 19:51:54 GMT</pubDate>
            <atom:updated>2024-11-07T08:52:17.727Z</atom:updated>
            <content:encoded><![CDATA[<h4>Many data engineers face the challenge of processing massive datasets quickly. In my recent project, I used AWS Lambda and DuckDB to query over 5.7 million records in under a second. Here’s how I did it.</h4><p>Have you ever faced the challenge of scanning <strong>millions of rows</strong> of data and needing the results in a few <strong>seconds</strong>? Recently, I worked on a project that required precisely that. The exciting project pushed me to find an efficient, scalable, and cost-effective solution using tools like AWS Lambda and DuckDB.</p><p>The project involved scanning data generated weekly, following the <strong>WORM (Write Once Read Many)</strong> approach. This data consisted of everything received for a given entity type over the past few months, grouped by month and week. Storing historical data efficiently was crucial due to its growing size.</p><p>The key requirements were:</p><ul><li><strong>Speed</strong>: Return results in just a few seconds.</li><li><strong>Scalability</strong>: Handle increasing data volumes without performance loss.</li><li><strong>Cost-Effectiveness</strong>: Keep operational costs low.</li><li><strong>Accessibility</strong>: Make data available via a secure API.</li><li><strong>Ease of Maintenance</strong>: Guarantee a solution that&#39;s easy to set up, validate, maintain, and monitor.</li></ul><p>At first glance, it might seem straightforward. However, things get more complex when you factor in the requirements above.</p><h3>Choosing the correct type of architecture:</h3><p>The first decision was whether to manage the services ourselves or go <strong>serverless</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zc1zGoTp6scvZ7tONv-jQ.jpeg" /><figcaption>Photo by Field Engineer: <a href="https://www.pexels.com/photo/crop-focused-ethnic-engineer-using-electric-screwdriver-442151/">https://www.pexels.com/photo/crop-focused-ethnic-engineer-using-electric-screwdriver-442151/</a></figcaption></figure><p>Given our needs for scalability and ease of setup, <strong>serverless</strong> architecture was the clear winner. With serverless, there’s no need to provision or manage underlying computing resources — you create the service, start using it, and pay as you go.</p><p>With the serverless architecture chosen, the next step was selecting the right AWS services to build our solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*ikm3bv51q2zQF13YM_OExA.png" /></figure><h3><strong>API Management with </strong>API Gateway</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*EFLKNSoB14KhixD5EbospA.png" /></figure><p>To make the data accessible via an API, we chose <strong>AWS API Gateway</strong>. It’s a fantastic tool for creating, publishing, maintaining, monitoring, and securing APIs at any scale.</p><p>API Gateway supports RESTful, WebSocket, and HTTP APIs and integrates seamlessly with other AWS services. It checked all our boxes:</p><ul><li><strong>Scalable</strong></li><li><strong>Cost-Effective</strong></li><li><strong>Easy to Set Up</strong></li></ul><h3><strong>Processing data with AWS Lambda</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*CQ1abT_BLr5xlzEdwhya4Q.png" /></figure><p>We selected <strong>AWS Lambda </strong>to process the data. It’s a serverless computing service that allows you to upload and run your code without provisioning or managing servers.</p><p>Lambda scales automatically with demand and integrates well with AWS services like API Gateway and CloudWatch.</p><p>Plus, you only pay for what you use, making it perfect for a cost-effective solution.</p><h3><strong>Overcoming Lambda’s Limitations with Docker and ECR</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KwFHBdL3UcI1X_70aEt40A.png" /></figure><p>While Lambda is powerful, it has a limitation: the code package size (including dependencies) is limited to <strong>250MB unzipped</strong>. This can be a pain point when your application has many dependencies. We used <strong>Docker</strong> and <strong>Amazon Elastic Container Registry (ECR)</strong> to overcome this.</p><ul><li><strong>Docker</strong> allows us to package the Lambda function as a Docker image, increasing the size limit to <strong>10GB</strong>.</li><li><strong>ECR</strong> is a fully managed container registry that stores our Docker images, making it easy to pull them from Lambda and keep track of versions.</li></ul><h3><strong>Flexible Storage with S3</strong></h3><p>The next challenge was storage. We had three main serverless options:</p><ol><li><strong>Amazon Aurora</strong></li><li><strong>DynamoDB</strong></li><li><strong>Amazon S3</strong></li></ol><p>We chose <strong>Amazon S3</strong> with <strong>Parquet</strong> files because:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*kgs0N7eynPAiBG7BxTnekg.png" /></figure><ul><li><strong>Cost-Effective Storage</strong>: Ideal for storing large amounts of historical data.</li><li><strong>Scalability</strong>: No limit on the total amount of data stored.</li><li><strong>Flexibility</strong>: Supports data partitioning and various file formats.</li><li><strong>Low Latency</strong>: Provides quick access to stored data.</li></ul><p>But how would we query data stored in S3 efficiently? Enter <strong>DuckDB</strong>.</p><h3><strong>Introducing DuckDB</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GLxV2IHR9NBMQ4VP6Oylg.png" /></figure><p><strong>DuckDB</strong> is a high-performance analytical database system that allows you to run SQL queries directly on data files like Parquet, CSV, and JSON without loading them entirely into memory. This makes it ideal for running queries in a limited memory environment like Lambda.</p><h3><strong>Keeping Lambda Warm with EventBridge Scheduler</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61ui-h1aRG5r5mgGmi37kQ.png" /></figure><p>Downloading large files from S3 can introduce latency. To mitigate this, we used <strong>AWS EventBridge Scheduler</strong> to keep our Lambda function “warm.” By invoking the function regularly, we kept the execution environment active, reducing cold start times and keeping the large files cached in memory.</p><h3><strong>Deploying with Terraform</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgPdoMYyycQhqOXESyRcyA.png" /></figure><p>To deploy this architecture, we used <strong>Terraform</strong>, which allows you to define and provision your infrastructure as code. This ensures that environments are consistent, version-controlled, and easy to replicate.</p><p>After showing all the services used, this is the final architecture result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMAkdl_O_7AwR33Li-vDNQ.png" /></figure><p>A simple, easy-to-set, cost-effective service that:</p><ul><li>Reads a file with over <strong>5.7 million records</strong>.</li><li>Responds in less than <strong>one second</strong>.</li><li>It costs less than <strong>$5 a month</strong>.</li><li>It is secure, scalable, cost-effective, and meets all our requirements.</li></ul><p>That&#39;s it. I hope you enjoyed it.</p><p>I’ll explore each component in the upcoming posts and show how we structure this architecture to perform well.</p><h3>In Plain English 🚀</h3><p><em>Thank you for being a part of the </em><a href="https://plainenglish.io/"><strong><em>In Plain English</em></strong></a><em> community! Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a> | <a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a></li><li><a href="https://differ.blog/"><strong>Create a free AI-powered blog on Differ.</strong></a></li><li>More content at <a href="https://plainenglish.io/"><strong>PlainEnglish.io</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceb6d1e36b1d" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/achieving-sub-second-data-retrieval-with-aws-lambda-and-duckdb-an-overview-ceb6d1e36b1d">How I Queried Millions of Rows in Under a Second with AWS Lambda and DuckDB</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guia de Sobrevivência na AWS: Evite Erros de Iniciante Que Podem Custar Milhares de Reais]]></title>
            <link>https://anthony-rodrigues.medium.com/guia-de-sobreviv%C3%AAncia-na-aws-evite-erros-de-iniciante-que-podem-custar-milhares-de-reais-f0d31ef0d1cb?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0d31ef0d1cb</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 13:56:29 GMT</pubDate>
            <atom:updated>2024-06-24T13:56:29.143Z</atom:updated>
            <content:encoded><![CDATA[<p>E ai, família tech! 👋 Como sabemos, os provedores de nuvem, como a AWS, mudaram o alcance da tecnologia, mas vamos ser honestos — uma configuração errada ou falta de conhecimento, e os pequenos detalhes sobre custos podem transformar sua experiência em PESADELOS 😱 (Pense: contas altíssimas que podem destruir seu negócio; existem muitos casos como <a href="https://medium.com/@maciej.pocwierz/how-an-empty-s3-bucket-can-make-your-aws-bill-explode-934a383cb8b1">aqui</a>, <a href="https://blog.limbus-medtec.com/the-aws-s3-denial-of-wallet-amplification-attack-bc5a97cc041d">aqui</a> ou <a href="https://news.ycombinator.com/item?id=22719573">aqui</a>.)</p><p>Mas relaxa! Como engenheiro e arquiteto de dados experiente, estou aqui para te ajudar. Este guia em duas partes vai te mostrar os passos ESSENCIAIS para configurar sua conta AWS da maneira CORRETA.</p><h3><strong>Por que isso é importante?</strong></h3><p>Imagine só: você é um pequeno empresário ou um profissional de tecnologia empolgado em usar a AWS para testar ou expandir seus projetos. Mas uma configuração errada e pronto 💥 Sua fatura explode!</p><p>A boa notícia é que uma configuração inicial correta pode te economizar muito dinheiro, dor de cabeça, e evitar que você seja alvo de hacking. Este guia é seu seguro contra custos inesperados na nuvem.</p><h3><strong>O que você precisa saber antes de começar:</strong></h3><ul><li>Você precisa de um e-mail válido, cartão de crédito e um app de MFA como o <a href="https://www.pcmag.com/picks/the-best-authenticator-apps">Google Authenticator ou Authy</a> para criar sua conta AWS.</li><li>Ao criar sua conta, você criará uma conta root com acesso irrestrito, então crie uma senha forte e guarde-a em local seguro.</li></ul><h4><strong>Conta root NÃO é para uso diário:</strong></h4><p>Pense na conta root como um extintor de incêndio para emergências. Use-a para a configuração inicial e crie usuários individuais para as tarefas do dia a dia.</p><h4><strong>MFA — o melhor amigo da sua conta:</strong></h4><p>Ative a Autenticação Multifator (MFA) para todos os usuários, especialmente a conta root, o mais rápido possível. É como adicionar uma camada extra de segurança ao seu banco online — você não abriria mão disso, né?</p><h4><strong>Alarmes de orçamento — seu sistema de alerta antecipado:</strong></h4><p>Eles te notificarão se seus gastos ultrapassarem um certo limite. Acredite, você vai agradecer depois.</p><p>Para criar sua conta, visite a página de <a href="https://signin.aws.amazon.com/signup?request_type=register">Login da AWS</a> e siga os passos; leva menos de 5 minutos. Depois de criar a conta, faça login e siga os próximos passos.</p><h3>Passo a passo para proteger sua conta AWS:</h3><h4><strong>Proteja sua conta ativando o MFA:</strong></h4><ul><li>Pesquise por “IAM”.</li></ul><figure><img alt="IAM" src="https://cdn-images-1.medium.com/max/1024/1*6AtX_jI6y-I-by0K_LBgYA.png" /></figure><ul><li>Deve aparecer uma caixa de recomendações de segurança com a opção de ativar um dispositivo MFA para sua conta.</li></ul><figure><img alt="Opção para adicionar MFA" src="https://cdn-images-1.medium.com/max/1024/1*0WS0frEA7zS13RSMXlH96A.png" /></figure><ul><li>Adicione o dispositivo MFA de sua preferência (se escolher Google Authenticator, Authy ou similar, escolha a opção “Aplicativo autenticador”).</li></ul><figure><img alt="Adicionando MFA" src="https://cdn-images-1.medium.com/max/1024/1*GQ5UrmsHnFIWjkj0BxbTEQ.png" /></figure><h4>Crie um grupo de administradores:</h4><ul><li>Selecione “Grupos de usuários” no menu lateral e crie um grupo com permissões de administrador.</li></ul><figure><img alt="Procurando opção de grupo" src="https://cdn-images-1.medium.com/max/602/1*9MkaZZyW9yxBXgBobLrp1A.png" /></figure><ul><li>A AWS já tem uma política de administrador chamada “AdministratorAccess”; anexe-a ao seu novo grupo.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_gzxPdKDfDHcWw6jZyHGw.png" /></figure><h3>Crie um usuário administrador (da maneira certa):</h3><ul><li>Selecione “Usuários” no menu lateral, crie seu usuário e adicione-o ao grupo de administradores criado no passo anterior.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*uW0bFF0pavHH6cXeBjZE3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWXWo9T3vpOi4oYFyaFwqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDasKMoMpK9bI5xqHqrfRQ.png" /></figure><ul><li>Marque a opção “Fornecer acesso de usuário ao Console de Gerenciamento da AWS” e escolha “Quero criar um usuário IAM”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8i2UQByegAQqvPsZwqE1BQ.png" /></figure><p><strong>DICA:</strong> Anexe políticas a GRUPOS, não a usuários. Isso facilita muito o gerenciamento de permissões, além de ser o jeito correto de gerenciar as permissões dos usuários!</p><h3>Permita que outros usuários monitorem a cobrança:</h3><ul><li>Antes de “aposentar” sua conta raiz, permita que outros usuários monitorem a cobrança para que você não precise mais usá-la.</li><li>Vá para a barra de navegação, selecione o nome da sua conta e depois a conta (<a href="https://console.aws.amazon.com/billing/home#/account">https://console.aws.amazon.com/billing/home#/account</a>).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*xI9jdvDwbeIwVlmATctXqg.png" /></figure><ul><li>Role para baixo até encontrar a seção “Acesso de usuário e função IAM às informações de cobrança”, edite-a e marque a opção “Ativar acesso IAM”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IK3CTGIONTCykTHSL-isbw.png" /></figure><h3>Faça login como administrador:</h3><ul><li>Na barra de navegação, copie seu ID de conta.</li><li>Saia da sua conta raiz e faça login com seu usuário administrador.</li><li>Visite a página de login e insira suas credenciais.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5Sn_QpGBxO3yBKr4SRFdA.png" /></figure><ul><li>Ative o MFA repetindo o passo 1.</li></ul><h3>Você conseguiu!!!</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPf3C7HqqYBVcCk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Freactionseditor-3oKIPf3C7HqqYBVcCk&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZ3RmcHJrN3Z0bjdnNGJ0Y2hqbmE3NGxkZmJtc3NteGNzZXozYWhzeSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F3oKIPf3C7HqqYBVcCk%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/8632cc9818be738c255b9ee333a13cea/href">https://medium.com/media/8632cc9818be738c255b9ee333a13cea/href</a></iframe><h4>Pronto!</h4><p>Você já tem uma conta AWS configurada corretamente, com um usuário raiz e um administrador com MFA ativado.</p><p>Isso significa mais segurança.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6MbmTd7iUDK5AiHu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-11-the-simpsons-11x22-3o6MbmTd7iUDK5AiHu&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExc2xvNGFwdmVwcXZuY2J5bHdzNDRveGZldmJsMHN3bmNqb3lsMm9oYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F3o6MbmTd7iUDK5AiHu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a40de0d750d227f8da90d333f31014d/href">https://medium.com/media/2a40de0d750d227f8da90d333f31014d/href</a></iframe><p>O usuário administrador pode gerenciar todo o sistema, incluindo a cobrança, e não precisamos mais usar o usuário raiz.</p><p>Parece fácil, mas seguindo estes passos, você já estará à frente de muita gente. Parabéns por melhorar a segurança da sua conta e continuar aprendendo.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FjJQC2puVZpTMO4vUs0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FjJQC2puVZpTMO4vUs0&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZnlnMGw5anpzd2JsNmhpZWkyeGU4Mmh6eHM0dHM1OWh0OWhxcmFjaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FjJQC2puVZpTMO4vUs0%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="361" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d60906e986abe0b8562a37fb2ecdba5/href">https://medium.com/media/2d60906e986abe0b8562a37fb2ecdba5/href</a></iframe><p>No meu próximo post, vou te mostrar como adicionar alarmes para te notificar sobre qualquer custo na sua conta e evitar as armadilhas de cobrança.</p><p>Não se esqueça de me seguir para não perder o próximo post! 😉</p><p>Agradeço por ler até o final. Deixe seu feedback, diga se te ajudei e o que você gostaria de ver aqui.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0d31ef0d1cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Survival Guide: Rookie Mistakes That Could Cost You THOUSANDS]]></title>
            <link>https://anthony-rodrigues.medium.com/aws-survival-guide-rookie-mistakes-that-could-cost-you-thousands-f2fdbcffd1c7?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2fdbcffd1c7</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 00:16:41 GMT</pubDate>
            <atom:updated>2024-06-21T19:07:33.396Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>AWS Survival Guide: Avoid Rookie Mistakes That Could Cost You THOUSANDS</strong></h3><p>Hey, tech fam! 👋 Cloud providers like AWS are game-changers, but let&#39;s be honest — one misconfiguration or lack of knowledge, and the small print about cost can turn your experience into NIGHTMARES 😱 (Think: sky-high bills that could kill your business; there are many cases like <a href="https://medium.com/@maciej.pocwierz/how-an-empty-s3-bucket-can-make-your-aws-bill-explode-934a383cb8b1">here</a>, <a href="https://blog.limbus-medtec.com/the-aws-s3-denial-of-wallet-amplification-attack-bc5a97cc041d">here</a>, or <a href="https://news.ycombinator.com/item?id=22719573">here</a>.)</p><p>But don&#39;t sweat it! As an experienced data engineer and architect, I&#39;ve got your back. This two-post guide will walk you through the <strong>ESSENTIAL</strong> steps to set up your AWS account RIGHT.</p><h3><strong>Why This Matters?!</strong></h3><p>Imagine this: You&#39;re a small business owner or a tech person excited about using AWS to test or scale up. But one wrong setting and BAM 💥 Your cloud bill explodes!</p><p>The good news is that a solid initial setup can save you a lot of money and headaches. This guide is your insurance policy against unexpected cloud costs.</p><h3><strong>What I need to know before continuing:</strong></h3><p>You&#39;ll need a valid email, credit card, and an MFA app like <a href="https://www.pcmag.com/picks/the-best-authenticator-apps">Google Authenticator or Authy</a> to create your AWS account.</p><p>While creating your AWS account, you&#39;ll create your <strong>root account, </strong>which has unrestricted access, so ensure <strong>your password is robust and stored securely</strong>.</p><h4><strong>Root Account is NOT Your Daily Driver:</strong></h4><ul><li>Think of the root account as your emergency break-glass-in-case-of-fire tool.</li><li>Use it for the initial setup, then create individual users for day-to-day assignments.</li></ul><h4><strong>MFA — Your Account&#39;s Best Friend:</strong></h4><ul><li>Enable Multi-Factor Authentication (MFA) for all your users, especially the root user ASAP.</li><li>It&#39;s like adding an extra layer of security to your online banking — you wouldn&#39;t skip that, would you?</li></ul><h4><strong>Budget Alarms — Your Early Warning System:</strong></h4><ul><li>These will notify you if your spending goes above a certain threshold. Trust me, you&#39;ll thank yourself later.</li></ul><p>To create your account, visit the <a href="https://signin.aws.amazon.com/signup?request_type=register">AWS Sigin page</a> and follow the steps; it takes less than 5 minutes.</p><p>After creating a new account, log in with it and follow the next steps.</p><h3><strong>Step-by-Step Guide to Securing Your AWS Account:</strong></h3><h4><strong>Secure Your Account by enabling MFA:</strong></h4><ul><li>Search by &quot;IAM&quot;</li></ul><figure><img alt="IAM search" src="https://cdn-images-1.medium.com/max/1024/1*6AtX_jI6y-I-by0K_LBgYA.png" /><figcaption>IAM search</figcaption></figure><ul><li>It should show a security recommendations box with an option to enable an MFA device for your account.</li></ul><figure><img alt="IAM dashboard" src="https://cdn-images-1.medium.com/max/1024/1*0WS0frEA7zS13RSMXlH96A.png" /><figcaption>IAM dashboard</figcaption></figure><ul><li>Add the MFA device of your preference (If you decide to use Google Authenticator, Authy, or similar, choose the &quot;Authenticator app&quot; option)</li></ul><figure><img alt="IAM — MFA selection" src="https://cdn-images-1.medium.com/max/1024/1*GQ5UrmsHnFIWjkj0BxbTEQ.png" /><figcaption>IAM — MFA selection</figcaption></figure><h4><strong>Create an Admin Group:</strong></h4><ul><li>Select &quot;User Groups&quot; in the lateral menu and create a user group with admin permissions.</li></ul><figure><img alt="IAM — User group selection" src="https://cdn-images-1.medium.com/max/602/1*9MkaZZyW9yxBXgBobLrp1A.png" /><figcaption>IAM — User group selection</figcaption></figure><ul><li>AWS already has an Admin policy called &quot;<strong>AdministratorAccess</strong>&quot;; attach it to your brand-new group.</li></ul><figure><img alt="IAM — Attach policy to group" src="https://cdn-images-1.medium.com/max/1024/1*T_gzxPdKDfDHcWw6jZyHGw.png" /><figcaption>IAM — Attach policy to group</figcaption></figure><h4><strong>Create an Admin User (The Right Way):</strong></h4><ul><li>Select &quot;Users&quot; in the lateral menu, create your user, and add the user to the admin group created in the previous step.</li></ul><figure><img alt="select user" src="https://cdn-images-1.medium.com/max/602/1*uW0bFF0pavHH6cXeBjZE3A.png" /><figcaption>IAM — Users</figcaption></figure><figure><img alt="IAM — Create user" src="https://cdn-images-1.medium.com/max/1024/1*xWXWo9T3vpOi4oYFyaFwqQ.png" /><figcaption>IAM — Create user</figcaption></figure><figure><img alt="IAM — User details" src="https://cdn-images-1.medium.com/max/1024/1*vDasKMoMpK9bI5xqHqrfRQ.png" /><figcaption>IAM — User details</figcaption></figure><figure><img alt="IAM — Set user group" src="https://cdn-images-1.medium.com/max/1024/1*8i2UQByegAQqvPsZwqE1BQ.png" /><figcaption>IAM — Set user group</figcaption></figure><ul><li>Be sure to flag the &quot;Provide user access to the AWS Management Console&quot; option and choose the &quot;I want to create an IAM user&quot; option.</li></ul><ol><li><strong>PRO TIP:</strong> Attach policies to GROUPS, not users. It makes permission management a breeze!</li></ol><h4><strong>Enable other users to monitor the billing:</strong></h4><ul><li>Before &quot;retiring&quot; your root account user, you need to allow other users to monitor the billing so that you no longer need to use the root account.</li><li>Go to the navigation bar, select your account name, and then select the account (https://console.aws.amazon.com/billing/home#/account).</li></ul><figure><img alt="IAM — account" src="https://cdn-images-1.medium.com/max/920/1*xI9jdvDwbeIwVlmATctXqg.png" /><figcaption>IAM — account</figcaption></figure><ul><li>Scroll down until you find the &quot;<strong>IAM user and role access to Billing Information</strong>&quot; section, then edit it and flag the &quot;<strong>Activate IAM Access</strong>&quot; option.</li></ul><figure><img alt="IAM — activate other users monitor billing" src="https://cdn-images-1.medium.com/max/1024/1*IK3CTGIONTCykTHSL-isbw.png" /><figcaption>IAM — activate other users monitor billing</figcaption></figure><h4><strong>Log in as Admin:</strong></h4><ol><li>At the navigation bar, copy your Account ID.</li><li>Sign out of your root account and log in with your Admin user.</li><li>Visit the <a href="https://signin.aws.amazon.com/oauth?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26oauthStart%3D1718841138816%26state%3DhashArgsFromTB_us-east-2_3e2069bebe920ce4&amp;client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas&amp;response_type=code&amp;iam_user=true&amp;account=aaa&amp;code_challenge=MiEGGbAXtArcj2aAsu1aqsAv-21NtvJlIlaLCbUn6Ig&amp;code_challenge_method=SHA-256&amp;flowStarted=1">Sign In page</a> and enter your credentials.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbpTrnvpSl4xzEbXpVu6EA.png" /></figure><ul><li>Enable the MFA by repeating the 1 step (<strong>Secure Your Account by enabling MFA</strong>)</li></ul><p>It&#39;s done.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPf3C7HqqYBVcCk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Freactionseditor-3oKIPf3C7HqqYBVcCk&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZ3RmcHJrN3Z0bjdnNGJ0Y2hqbmE3NGxkZmJtc3NteGNzZXozYWhzeSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F3oKIPf3C7HqqYBVcCk%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/8632cc9818be738c255b9ee333a13cea/href">https://medium.com/media/8632cc9818be738c255b9ee333a13cea/href</a></iframe><p>You&#39;re all set now. You have a properly configured AWS account, with both a root and an admin user with MFA enabled.</p><p>This means more security.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6MbmTd7iUDK5AiHu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-11-the-simpsons-11x22-3o6MbmTd7iUDK5AiHu&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExc2xvNGFwdmVwcXZuY2J5bHdzNDRveGZldmJsMHN3bmNqb3lsMm9oYiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F3o6MbmTd7iUDK5AiHu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a40de0d750d227f8da90d333f31014d/href">https://medium.com/media/2a40de0d750d227f8da90d333f31014d/href</a></iframe><p>The admin user can manage the whole system, including the billing, and we don&#39;t need to use the root user anymore.</p><p>It seems easy, but after following these steps, you&#39;ll already be ahead of many people.</p><p>Congratulations on improving the security of your account and continuing to learn.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FjJQC2puVZpTMO4vUs0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FjJQC2puVZpTMO4vUs0&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZnlnMGw5anpzd2JsNmhpZWkyeGU4Mmh6eHM0dHM1OWh0OWhxcmFjaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FjJQC2puVZpTMO4vUs0%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="361" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d60906e986abe0b8562a37fb2ecdba5/href">https://medium.com/media/2d60906e986abe0b8562a37fb2ecdba5/href</a></iframe><p>In my next post, I&#39;ll show you how to add alarms to notify you of any cost on your account and avoid the cost traps.</p><p>Make sure to hit the ‘Follow’ button so you don’t miss the next post, in which I’ll show you how to create budget alarms and avoid those nasty surprises!</p><p>I appreciate you reading this post to the end. Please let me know what you enjoyed this post, if this helped you in any way, and what you&#39;d like to see here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2fdbcffd1c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s Data Architecture and its characteristics?]]></title>
            <link>https://anthony-rodrigues.medium.com/whats-data-architecture-and-its-characteristics-3a9dd7f012eb?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a9dd7f012eb</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-governance]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 19:22:05 GMT</pubDate>
            <atom:updated>2023-03-13T19:22:05.376Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever joined a company and it was extremely difficult to understand the pipelines, data flow, and process? Or worse, nothing makes sense? This is one of the effects of not having a Data Architecture in place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*AHo8vEshBO2kPHIvc1a8wg.jpeg" /><figcaption><a href="https://www.contiamo.com/en/feed-me-memes">https://www.contiamo.com/en/feed-me-memes</a></figcaption></figure><p><strong>So, WTF is Data Architecture?</strong></p><p>In simple words, Data Architecture seeks to clarify a company&#39;s entire data, pipelines, and flows. The final goal is to easily locate, manage and describe how the data is processed and what happens on each execution by having a “data blueprint”.</p><p>Now that you have a basic idea, let’s untangle this topic into its main characteristics.</p><figure><img alt="Photo by mehdi khamssi: https://www.pexels.com/photo/crop-black-man-untangling-fishnet-at-home-4351363/" src="https://cdn-images-1.medium.com/max/640/1*IXt_J3LGGjcED4GsErVvxg.jpeg" /></figure><p>Before we start: First things first rest in peace Uncle Phil. (If you know, you know.)</p><h3><strong>Business first:</strong></h3><p>If you’re coming from a tech background, it can be weird to ignore the technologies, but at this moment, we focus on the customer and how to put them at the center of every decision.</p><p>Sometimes we forget, but technology should serve to attend to the people and the business, not the other way around. Remember, we work in a business, and the business necessities must be addressed.</p><figure><img alt="Photo by Nataliya Vaitkevich: https://www.pexels.com/photo/woman-in-a-beige-coat-writing-on-a-glass-panel-using-a-whiteboard-marker-7173047/" src="https://cdn-images-1.medium.com/max/640/1*BtV_KZY-vq8pzeTDkDkDBA.jpeg" /></figure><p>Thus, to achieve that, the steps are:</p><ul><li><strong>Know your business partners</strong></li></ul><p>Talk with the people that you work with/to. Understand their needs, desires, and pains. How do you expect to design architecture if you don’t know the pains?</p><ul><li><strong>Learn and Understand the Business goals.</strong></li></ul><p>What are the business goals, and what it needs? Understand what the business does and how you can help it be achieved.</p><ul><li><strong>Understand the Business processes.</strong></li></ul><p>What are the current processes in the company? Do they increase the team&#39;s speed and confidence or slow them down? How can it be improved?</p><ul><li><strong>Understand the constraints</strong></li></ul><p>Understand the legal, economic, technological, or personal constraints. See what can slow you down or limit access to technology or time.</p><ul><li><strong>Learn the Industry specifics.</strong></li></ul><p>Every industry has its particularities, learn them. Understand the regulations about data usage and what is important and necessary in the industry.</p><h3><strong>Data Integrity:</strong></h3><p>Here the goal is to ensure correct, consistent, and accurate data across the organization, AKA the <strong><em>“golden record”</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*CEZzPK656cqD-7lpLUebFA.jpeg" /><figcaption><a href="https://www.flickr.com/photos/nasa-jpl/22707500202">https://www.flickr.com/photos/nasa-jpl/22707500202</a></figcaption></figure><p>The <strong><em>“golden record”</em></strong> is the final data after merging, cleaning, and adjusting the data from various sources. It’s the ultimate data, the single source of truth.</p><p>To achieve that, here are some steps.</p><ul><li><strong>Ensure the data is unique.</strong></li><li><strong>Guarantee a unique ID per item.</strong></li><li><strong>Have a Separated Database to store the single source of truth.</strong></li></ul><h3>Data Governance:</h3><p>In data governance, the goal is not only to understand the data, but how to access, manage, and use the data, it also defines who is going to use, owns, and manage the data.</p><p>It’s a set of rules and standards to ensure suitable data stewardship.</p><p>The keys definitions are:</p><ul><li><strong>Data owner.</strong></li></ul><p>Who owns the data? Who is the business subject matter experts? The responsible for the data can create a data dictionary explaining the data, which can be used later to build a Single Source of Truth.</p><ul><li><strong>Data manager</strong></li></ul><p>Who manages the data? Who’s responsible for guaranteeing the functioning of the Databases, ETLs, and Pipelines?</p><ul><li><strong>Data user</strong></li></ul><p>Who uses the data? Who needs to access the data, and what data should they be able to access?</p><p>This directly impacts data security.</p><h3>Scalability and Flexibility</h3><p>Last but not least, Scalability and Flexibility. This is important as the other.</p><p>You can design an amazing architecture, extremely easy to understand, with the right data access in place. Still, nothing will matter if you can’t scale this architecture to handle a massive amount of data or requests to retrieve the data, it also won’t matter much if only a few needs can be addressed and every new implementation has a massive cost and workload.</p><p>When designing the architecture, you should ask as many questions as possible.</p><p>This is a more complex step since it requires understanding the data, its usage, the business and etc., but some steps that I take are:</p><ul><li><strong>Don’t go only by what’s written:</strong></li></ul><p>It is necessary to understand the demand, not always what the business needs is written. Business people do not always understand tech and how it works, therefore, they will write the demands as it is for other business people, it’s the architecture job to ask questions, understand the demand and see if it’s doable.</p><ul><li><strong>Think in different paths.</strong></li></ul><p>When designing a solution, we may do only/exactly what the business asks, but it shouldn’t be that way.</p><p>Yes, we must address the business needs, but it doesn’t mean doing exactly what they ask. You should think of the best way to address their needs while thinking of a fast and low-cost solution, with the potential to grow in different ways, when possible.</p><ul><li><strong>Know the volume size.</strong></li></ul><p>To design an architecture that can fulfill the needs, it’s necessary to understand the size of the data. Does it have a few GBs or a hundred TB? How often the data is accessed? This and other questions will help define where/how the data will be stored.</p><p>I’m really happy that you read all this, and I hope you’ve enjoyed and learned a bit about data architecture.</p><p>Please, don’t forget to like and share this post, and don’t forget to follow me.</p><p>To recap, Data architecture seeks to clarify a company’s entire data, pipelines, and flows.</p><p>Its main characteristics are:</p><ul><li>Business first.</li><li>Data Integrity.</li><li>Data Governance.</li><li>Scalability and Flexibility.</li></ul><p><strong>References:</strong></p><ul><li><a href="https://www.udacity.com/course/data-architect-nanodegree--nd038">Udacity’s Data architecture NanoDegree</a></li><li><a href="https://www.eckerson.com/articles/ten-characteristics-of-a-modern-data-architecture">Ten Characteristics of a Modern Data Architecture</a></li></ul><p>* ChatGPT didn’t write this post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9dd7f012eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Boy Scout rule and its importance on software development.]]></title>
            <link>https://anthony-rodrigues.medium.com/the-boy-scout-rule-and-its-importance-on-software-development-2994b1c07c40?source=rss-c8b50b03336e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2994b1c07c40</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Anthony Rodrigues]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 18:42:17 GMT</pubDate>
            <atom:updated>2023-02-24T19:00:47.376Z</atom:updated>
            <content:encoded><![CDATA[<p>If you don’t know the “boy scout rule” or want to know how it impacts software development, follow me, I’ll explain what it’s and why you should do it if you don’t already.</p><figure><img alt="Photo by Ron Lach : https://www.pexels.com/photo/portrait-of-smiling-scout-boys-in-classroom-10637647/" src="https://cdn-images-1.medium.com/max/640/1*DoRCbQKIlCt9aWHNcAr8pA.jpeg" /></figure><h3>What’s the boy scout rule?</h3><p>It is a premise in software development that can be summarized as: “Leave the code better than you found.”</p><p>You don’t need to re-write the module or spend days or weeks checking every piece, but you can improve a variable name, break a gigantic function into small functions, and make other small improvements.</p><p>If the rule seems simple, it’s because it’s. It is simple and can drastically increase code efficiency, security, readability, and more.</p><p>But don’t fool yourself. It is simple, but since its values are only visible after a while, many developers fool them self thinking it’s a “waste of time” and don’t do it on a day-to-day routine.</p><p>They don’t realize that they are only postponing a massive pile of bad code that will heavily affect the next person who touches the code.</p><h3>What does it mean in real life?</h3><p>You know when you need to fix a bug, and when you find the spot, the code is so messy, or when you see such a confusing structure that your face looks like this:</p><figure><img alt="Photo by Andrea Piacquadio: https://www.pexels.com/photo/man-in-teal-v-neck-shirt-wearing-black-framed-eyeglasses-3907760/" src="https://cdn-images-1.medium.com/max/640/1*PWpo-JbBpuaaGEuZ7P8nNg.jpeg" /></figure><p>Some developers will only resolve the bug and move forward, leaving that hot mess behind for the next developer. But you, my friend, are <strong>not</strong> one of these “developers”.</p><p>You know that this is a shared space, and like a shared space, everyone should do their part to have a better, clean, and safe space. And this includes making small improvements every time we change something.</p><p>We can compare it with a building, if one window gets broken and is left unrepaired, all the rest of the windows will soon be broken, regarding being or not in a nice neighborhood. The same goes for the code; if we leave a bad variable name, bad architecture decisions, or poor code, we leave a “broken window” and pass the idea that we don’t care about the code. This is called “<a href="https://www.psychologytoday.com/us/basics/broken-windows-theory">The Broken Windows Theory</a>”.</p><p>Using this rule not only shows that you care about the code that you work on, but it also shows that you’re a team player and a serious professional.</p><h3>OK, I should improve the code, but how do I do it?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*7UgN7AS6AG7YT-ptW52AAw.jpeg" /><figcaption>Forrest Gump Poster</figcaption></figure><p>Since I’m not Forrest Gump to only tell stories, here is an example using the <strong><em>boy scout rule</em></strong>.</p><p>I got this example from <a href="https://github.com/sobolevn">Nikita Sobolev&#39;s</a> repo called <a href="https://github.com/sobolevn/python-code-disasters">python-code-disasters</a>. It’s a calculator for the four basic math operations: <strong>addition, subtraction, multiplication, and division.</strong></p><p>Here is the beginning of the code, you can check the rest <a href="https://github.com/sobolevn/python-code-disasters/blob/master/python/my_first_calculator.py">here</a>:</p><pre>if 3/2 == 1:  # Because Python 2 does not know maths<br>    input = raw_input  # Python 2 compatibility<br><br>print(&#39;Welcome to this calculator!&#39;)<br>print(&#39;It can add, subtract, multiply and divide whole numbers from 0 to 50&#39;)<br>num1 = int(input(&#39;Please choose your first number: &#39;))<br>sign = input(&#39;What do you want to do? +, -, /, or *: &#39;)<br>num2 = int(input(&#39;Please choose your second number: &#39;))<br><br>if num1 == 0 and sign == &#39;+&#39; and num2 == 0:<br>    print(&quot;0+0 = 0&quot;)<br>if num1 == 0 and sign == &#39;+&#39; and num2 == 1:<br>    print(&quot;0+1 = 1&quot;)<br>if num1 == 0 and sign == &#39;+&#39; and num2 == 2:<br>    print(&quot;0+2 = 2&quot;)<br>if num1 == 0 and sign == &#39;+&#39; and num2 == 3:<br>    print(&quot;0+3 = 3&quot;)<br>if num1 == 0 and sign == &#39;+&#39; and num2 == 4:<br>    print(&quot;0+4 = 4&quot;)</pre><p>What are some issues that you see in this code? Here are some that I saw:</p><ul><li>The sign operator isn’t validating if the input value is valid; nothing will be shown if it’s a different value.</li><li>The code has a limitation of only working for a limited range of values.</li><li>Even after finding the right value, the code continues its multiple <strong>IF</strong> validation till it ends.</li><li>It isn’t doing the calculation, rather, it’s just checking all values and printing a text.</li></ul><p>Now imagine that you found this code in a live project and found that one of those validations is like this:</p><pre>if num1 == 23 and sign == &#39;/&#39; and num1 == 15:<br>    print(&quot;23/15 = 1.533333333&quot;)</pre><p>What would you do?</p><p>If you don’t care for the code nor you’re a team player, you’ll fix it and move on to the next task(I’d be scared if this passed in a code review), but if you are a team player and care for your projects, you’ll see that this code is messy and needs to be improved.</p><p>So, what do you do?</p><p>First, you need to identify the improvements that can be made. Here are some of them:</p><ul><li>Validate if the received value is valid; if not, let the user know.</li><li>Create a method to replace the numerous IF statement.</li><li>Add Try/Catch statements to better error handling.</li></ul><p>Second, we implement the code:</p><pre>def calculate(number1: int, number2: int, op_sign: str) -&gt; float:<br>    mapper = {<br>        &quot;+&quot;: number1 + number2,<br>        &quot;-&quot;: number1 - number2,<br>        &quot;/&quot;: number1 / number2,<br>        &quot;*&quot;: number1 * number2<br>    }<br>    return mapper[op_sign]<br><br><br>print(&#39;Welcome to this calculator!&#39;)<br>print(&#39;It can add, subtract, multiply and divide whole numbers.&#39;)<br>try:<br>    num1 = int(input(&#39;Please choose your first number: &#39;))<br>    sign = input(&#39;What do you want to do? +, -, /, or *: &#39;)<br>    num2 = int(input(&#39;Please choose your second number: &#39;))<br>    result = calculate(num1, num2, sign)<br>    print(f&quot;&quot;&quot;{num1} {sign} {num2} = {result}&quot;&quot;&quot;)<br>except ZeroDivisionError:<br>    print(&quot;You can&#39;t divide by zero&quot;)<br>except KeyError:<br>    print(&quot;Invalid sign&quot;)<br>except ValueError:<br>    print(&quot;Invalid input&quot;)</pre><p>Look how much cleaner and easy to understand this code is now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*UENSYZXpgrxDATZhZOLiXw.jpeg" /><figcaption>What the…</figcaption></figure><p>With just a few changes, we reduced this code from <a href="https://github.com/sobolevn/python-code-disasters/blob/master/python/my_first_calculator.py#L20822">20.822</a> lines to less than 30 lines while we left the option to add extra functions easily, validations, etc. You can also check the improvement <a href="https://gist.github.com/AnthonyMRodrigues/51ba36c9a58c3a5ebb8f4534a3131676">here</a>.</p><h3>Alright, this is nice, though why should I do it?</h3><p>Well, there are many reasons for doing so, but here are some:</p><ul><li>A clean code is better to read and understand.</li><li>A clean code encourages its evolution.</li><li>A clean code is safer and easier to spot bugs.</li><li>It will facilitate both your and your colleagues&#39; job.</li><li>A professional improves things and doesn’t do “only what it was told to.”</li><li>It will reduce the time spend on debugs and improvements.</li><li>Last but certainly not least, the next person that checks this code can be a violent psychopath who knows where you live. ( meme)</li></ul><p>If you get here, thanks a lot. I really appreciate it.</p><p>This is my first post in a long time, and I intend to keep posting, so every feedback is important.</p><p>References:</p><ul><li>Clean code.</li></ul><p>* ChatGPT didn’t write this post.<br>** The use of someone else’s code as an example was not to belittle/ridicule the code or the person but rather to show that code can be improved and that other people’s code can be used as an example to improve your own code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2994b1c07c40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>