Posts

Lets Prepare for AWS Certified Solutions Architect Associate - 01

Image
Hello there, I'm starting a new series on AWS Certified Solutions Architect Associate exam guide. If you selected this post to read, I know that you already know about this exam. At least you may have heard about it. Having AWS certified is a really good opportunity to leverage your career since this is a highly demanding certification nowadays. So let's move on to the topics we are going to talk about.. 1), details about the exam. (time, no of questions, what type of questions) 2). How to use the resources given by amazon 3). Content. 1) Details about the exam. 65 questions. 130 minutes. multiple choice questions having only one correct answer and questions having more that one correct answers are there. you can register for a practice exam to see whether you are well fitted to the actual exam. The cost will be 20$. (price can change). you don't want to go anywhere to take the practice exam. you can just face it and see the result once after you finished w...

Mutable Vs Immutable

Image
Have you ever heard this statement? Strings are Immutable. Yes if you have ever learned Java. 😇 But do you know why?. Ok, Today we are going to find out. When you take an object, it can be changed after it has assigned a value. Then it is mutable Once an object is assigned a value, if it can't be changed Then we call it an Immutable Object But if it is how a string is immutable. I remember I've changed the value of a string String name = "Ravinda"; name = "Roshan" See you don't get any trouble doing that. and if you print the value you get the value as Roshan here. So what the hell are you saying???? 😡😡 Ok, Calm Down, I'll Explain by taking this example. public class Student { private String nameOne ; private void testThis () { nameOne = "Ravinda" ; System . out . println ( nameOne . hashCode ()); nameOne = "Roshan" ; System . out . println ( nameOne . hashCode ());...

Microservices - 01

Image
Introduction to Microservices Microservices are distributed, loosely coupled software services that carry out a small number of well-defined tasks carry out a small number of well-defined tasks. Before Going for the microservices, let's look into the monolithic architecture which is the traditional approach. Before Microservices architecture came into action, Monolithic architecture was used. (Nowadays also many Software Companies still use this and they tend to move for microservice architecture) In a Monolithic architecture, Software is delivered as a single artifact. All the UI (user interface), business and database access logic are packaged together into a single application artifact and deployed to an application server. This is how a company which has its products in a monolithic architecture. In a Monolithic architecture, When a change of a module is done, in order to deploy, have to reinstall all the other modules also. Sin...

Spring boot - 02

Image
Let's Create a Simple Rest Web Service 01.Preparation  Hi all, Today we are going to start hands-on on our first spring boot rest web service. Requirements ... Java 1.8 or above. Gradle for dependency management Spring CLI v2.2.1.RELEASE Mongo DB Spring too suite (STS)  You can use Maven instead of Gradle if you want. If you still don't know what Maven/Gradle is, check this post[link]. Instead of using STS you can use IntelliJ IDEA if you want. But in here all the steps I have mentioned are for STS.  Here is the spring installation guide to get Spring boot CLI.  Spring boot CLI installation So if you are all set with the above requirements.  STEP -01 Open STS and File -> new Project Select Spring Starter Project. Click next.  You'll get the window "New Spring Starter Project". Give a Proper Name for the Project.  Since I'm going to create a service that we can save/get movie details. So I name it ...

Mongo DB - 01 (Intro)

Image
I’m going to learn about mongo DB now. Yes yes, it’ll be from scratch because I don’t know anything about MongoDB. When I want to learn a new technology I first google it and find some background details about it. “MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability.” Oh... What is document-oriented. I’ve worked with RDBMS but not this document-oriented databases. “A document-oriented database is a specific kind of database that works on the principle of dealing with 'documents’ rather than strictly defined tables of information. The document-oriented database plays an important role in aggregating data from documents and getting them into a searchable, organized form.” A document-oriented database, as a particular kind of NoSQL database, is able to 'parse’ data from documents that store that data under certain 'keys,’ with sophisticated support for retrieval. For example, suppose ...

Spring boot -01 (From the scratch)

Image
Today I am going to learn Spring Boot from scratch... Going through video tutorials will bore me. So this is the method I'm using .. First Find a spring boot project from anywhere (Github maybe). Then try to configure it in your environment. You may have to install some dependent applications may be.  However, you will end u with configuring your developer environment to run a spring boot project... Now you know what you needed to run a spring boot application. Then Go through the code and (maybe you have to debug also) understand what have done in the code and feel the result of it... Identify everything you don't understand and learn, follow the documentation, StackOverflow or any other way to learn what the code does actually. Then try to write the same application by yourself from scratch, you have a working project. So no need to worry... Ok, do your thing by yourself. Identify and learn how a spring boot project will look like. I'm going to go build a s...

Angular (before hands on) -01

Here I'm mainly talking about angular 2. After AngularJS, angular2 is released with major changes in the Framework. Changes happened The major change was transferring to TYPESCRIPT from JS. And angular 2 is based on a Component service architecture. AngularJS had an MV* architecture. Let's take a look at the core features of this framework... Module : modules are used to separate the functionality of the application. When you create your initial angular application When you take a module code. (ex:- app.module.ts) there are imports, declarations, bootstrap and can see annotations too. import { NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { AppComponent } from './app.component' ; @NgModule ({ imports : [ BrowserModule ], declarations : [ AppComponent ], bootstrap : [ AppComponent ] }) export class AppModule { } @NgModul...