<?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 sai chandu bobbili on Medium]]></title>
        <description><![CDATA[Stories by sai chandu bobbili on Medium]]></description>
        <link>https://medium.com/@bschandu67?source=rss-fa5db2a7bccd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kiGCxqmDpSRm--cH</url>
            <title>Stories by sai chandu bobbili on Medium</title>
            <link>https://medium.com/@bschandu67?source=rss-fa5db2a7bccd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:57:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bschandu67/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[Spring AOP to decouple logging from core logic]]></title>
            <link>https://medium.com/@bschandu67/spring-aop-to-decouple-logging-from-core-logic-244c8157d9e4?source=rss-fa5db2a7bccd------2</link>
            <guid isPermaLink="false">https://medium.com/p/244c8157d9e4</guid>
            <category><![CDATA[aspect-oriented]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[aop]]></category>
            <category><![CDATA[proxy-pattern]]></category>
            <category><![CDATA[aspect-patterns]]></category>
            <dc:creator><![CDATA[sai chandu bobbili]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 14:38:21 GMT</pubDate>
            <atom:updated>2023-03-05T14:38:21.515Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, I want to share about AOP and how it can help in modularizing some of your code sections. This helped in improving code quality, readability and maintainability of our code base.</p><p><strong>What is Aspect Oriented Programming?</strong></p><p>AOP is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does this by adding additional behavior to existing code <strong>with/without modifying the code</strong> itself. Instead, we can modify/declare the new code and the new behaviors separately.</p><p>Aspect-Oriented Programming (AOP) complements Object-Oriented Programming by providing another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns such as transaction management and logging that cut across multiple types and objects.</p><h3>Basic Terminology of AOP</h3><p><em>Aspect</em>: A modularization of a concern for which the implementation might otherwise cut across multiple objects. Transaction management is a good example of a crosscutting concern in J2EE applications. Aspects are implemented using Spring as Advisors or interceptors.</p><p><em>Joinpoint</em>: Point during the execution of a program, such as a method invocation or a particular exception being thrown. In Spring AOP, a joinpoint is always a method invocation. Spring does not use the term joinpoint prominently; joinpoint information is accessible through methods on the MethodInvocation argument passed to interceptors and is evaluated by implementations of the org.springframework.aop.Pointcut interface.</p><p><em>Advice</em>: Action taken by the AOP framework at a particular joinpoint. Different types of advice include “around,” “before” and “throws” advice. Advice types are discussed below. Many AOP frameworks, including Spring, model advice as an <em>interceptor</em>, maintaining a chain of interceptors “around” the joinpoint.</p><p><em>Pointcut</em>: A set of joinpoints specifying when advice should fire. An AOP framework must allow developers to specify pointcuts: for example, using regular expressions.</p><p><em>Introduction</em>: Adding methods or fields to an advised class. Spring allows you to introduce new interfaces to any advised object. For example, you could use an introduction to make any object implement an IsModified interface, to simplify caching.</p><p><em>Target object</em>: Object containing the joinpoint. Also referred to as <em>advised</em> or <em>proxied</em> object.</p><p><em>AOP proxy</em>: Object created by the AOP framework, including advice. In Spring, an AOP proxy will be a JDK dynamic proxy or a CGLIB proxy.</p><p><em>Weaving</em>: Assembling aspects to create an advised object. This can be done at compile time (using the AspectJ compiler, for example), or at runtime. Spring, like other pure Java AOP frameworks, performs weaving at runtime.</p><h3>How does Spring AOP works under the hood?</h3><p>Spring proxies the object we are intercepting and and our AOP code is executed by the proxy before, after, or around the invocation of the implementing object.</p><p><strong>Understanding Proxies</strong></p><ul><li>A proxy is an object that wraps another object maintaining its interface and optionally providing additional features.</li><li>Proxies usually delegate behaviour on the real object they are proxying but can execute code around the call to the wrapped object.</li><li>Spring uses Proxies for many of its magical features and AOP is one of this.</li></ul><p>The proxy will be able to delegate to all of the interceptors (advice) that are relevant to that particular method call. However, once the call has finally reached the target object, any method calls that it may make on itself are going to be invoked against the this reference, and not the proxy. This has important implications. It means that self-invocation is not going to result in the advice associated with a method invocation getting a chance to execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yqRt6F0FDDN1Sp67" /></figure><h3>Where to Use AOP?</h3><ul><li>Obviously when we want to address a cross cutting concern such as logging and security. <br>1. Logging before and after a method is executed. <br>2. Authorizing before making the method call.</li><li>Basically whenever you want to have a modular implementation for a functionality (generally system wide) that has to be separated from main code.</li></ul><p><strong>Other examples when to use AOP</strong></p><ol><li>Performance monitoring</li><li>Audit Logging</li><li>Exception Handling</li><li>Method level caching (for stateless methods, this can reduce database hits)</li></ol><h3>Why to Use AOP?</h3><ul><li>Reduces the code clutter</li><li>Improves the readability of the code</li><li>Secondary functionality like logging can be kept out of the main code</li><li>Better maintainability</li></ul><p>Some disadvantages of AOP</p><ol><li>A little harder to debug</li><li>Runtime overhead (but negligible)</li></ol><h3>Some other resources that can help in learning AOP</h3><p><strong>Baeldung</strong>: <a href="https://www.baeldung.com/spring-aop-annotation">Spring AOP annotation</a><br><strong>GFG</strong>: <a href="https://www.geeksforgeeks.org/spring-aop-aspectj-annotation/">Spring AOP aspectj Annotation</a><br><strong>Javatpoint</strong>: <a href="https://www.javatpoint.com/spring-aop-aspectj-annotation-example">Spring AOP aspectj annotation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244c8157d9e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host your website using GitHub Pages, AWS Route53, and AWS CloudFront]]></title>
            <link>https://medium.com/@bschandu67/host-your-website-using-github-pages-aws-route53-and-aws-cloudfront-7345493d2ea6?source=rss-fa5db2a7bccd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7345493d2ea6</guid>
            <category><![CDATA[html-css]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[hosting]]></category>
            <dc:creator><![CDATA[sai chandu bobbili]]></dc:creator>
            <pubDate>Tue, 10 Aug 2021 03:48:13 GMT</pubDate>
            <atom:updated>2021-08-10T03:48:13.456Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently developed my own website and I wanted to host my website on a domain. I already used AWS Free tier and learned EC2, S3, etc…, which encouraged me to use AWS Route53 for domain hosting. I bought a domain and successfully hosted it, but it’s not an easy process. Making HTTP secure and configuring the Cloudfront to redirect the domain to the GitHub page was not an easy task. I was shocked to see that there were no tutorials or articles on this particular way(GitHub pages + AWS) of hosting a website. So I wanted to write this article and help others who might want to do the same in the future.</p><p><em>PS: This is my first time writing an article, please forgive me for any mistakes.</em></p><p>There are 4 steps to make this happen, it may be a long article, but please bear with me.<br><strong> 1.</strong> Host the website using GitHub pages.<br><strong> 2</strong>. Buying domain on AWS Route 53<br><strong> 3. </strong>ACM SSL Certification<br><strong> 4</strong>. Creating a distribution on CloudFront</p><p><strong>Host the website using GitHub pages.</strong></p><ol><li>Create a new repository without README.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5j3wKFka99oA8AzGGWiNQ.png" /></figure><p>2. Create a new file index.html.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ev3wsgW6M_II5vHnqbXm3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvC0eM8A7sdy67P0nMwXpQ.png" /></figure><p>3. Go to Settings — Pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfiS9lnp2fzb0g6k8xNJYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*200F8Rqn1Nu8hO1hR58jmw.png" /></figure><p>4. Choose the branch and save it, GitHub pages will publish your site on github.io. It may take a few minutes to publish it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3t65Ti3NdRvjE1Wv1QdcaQ.png" /></figure><p>This step is very easy. After this, you have to create your portfolio or you might have already built it. There are many resources for building portfolios, use them and build an awesome portfolio for yourself.</p><p><strong>Buying domain on AWS Route 53</strong></p><p>The first step is to check if the domain name of your interest is available. There are different types of domain names that can be used(.com, .net, .co.in, etc.,). You should visit <a href="https://console.aws.amazon.com/route53/v2/home#Dashboard">this</a> dashboard for checking the availability. After visiting this dashboard, you can search for your domain under the “Register Domain” section. This will redirect you to the next page which lists the available domains and you can select one of them based on your budget(you will be charged with +10% for tax, keep this in mind).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBTBTEWkqWWSZD1dHrYXEg.png" /><figcaption>available domain list</figcaption></figure><p>Once you had bought the domain, it takes some time to get activated. Once it gets activated, you can see in the dashboard under the notifications section that “Domain registration successful”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2INWFTY031_hTqFB0YHxpA.png" /></figure><p><strong>ACM SSL Certification</strong></p><p>Search for Certification Manager service in search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Bz-IDWzOOGByM2M9MveVw.png" /></figure><p>You will be taken to the below page and remember to change the location to <em>us-east-1 (N. Virginia). </em>The first option is in the list of locations shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suu0C144xXgG7R1rHTMhFA.png" /></figure><p>Click on Provision certificates — Get Started button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4F-RATtynPolOT24PDlXSA.png" /></figure><p>Choose “Request a public certificate”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQ9fSc08XBMta2t4-OYsAA.png" /></figure><p>Enter your domain and go to the next page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-yXmsnrU83uraP2qCvneDA.png" /></figure><p>Select DNS validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdoPi_SdurUkAzUohZtHVw.png" /></figure><p>Give a unique tag name and value. This step is not so important, you can choose some random tag and value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqccWIpw7Y-m6oXpAIO32A.png" /></figure><p>Preview the choices and Confirm and request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*aJVJ5pbx6Ny8VDw44CWE1A.png" /></figure><p>Select “create record in route 53”. This will add the SSL certificate to the domain directly, it will make things easier. You can also add the record in hosted zones section as a CNAME record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1zjLLNJ5b0AYy4UonXRJHA.png" /></figure><p><strong>Creating a Cloudfront distribution</strong></p><p>This step is the most important and final.</p><p>Search for CloudFront service and click on the “create distribution” button. This will load the below page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5IIdck4AzEMrQAY1IE3cA.png" /></figure><p>In the Origin domain, add “githubusername.github.io” and add the repository name in the origin path. [Very Very Important].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auZqtiE8TYBH40_ATySOEw.png" /></figure><p>Select HTTPS only and SSL protocol as TLSv1.1+</p><p>There will be a name input section on this page, add whatever you added in the “origin domain” section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9_28fu--ngLmrFXqVel4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhwJmXKdxKg7nOuZEg-7HQ.png" /></figure><p>Add your domain under “Alternate domain name(CNAME)”</p><p>You will get the SSL certificate you created and added to your domain in the previous step as an option under the “Custom SSL certificate <em>— optional</em>” section. Select that certificate. Create distribution.</p><p>That’s it done. It takes some time to get it running. Wait for 2,3 hours and it should be done. I faced some issues, but I contacted AWS customer care and they helped me figure it out.</p><p>Good luck! Keep practicing and get better. You can visit my website at <a href="https://saichandu.com/">https://saichandu.com</a> or you can send me an email directly at bschandu67@gmail.com(I will reply as soon as I can).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7345493d2ea6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>