Skip to main content

Posts

Showing posts from April, 2024

Springboot - Eureka - registry

Eureka is a registry that helps with service registration and discovery. It is a central component of the microservices ecosystem, allowing service instances to register themselves and facilitating service discovery. Eureka Server is a RESTful service that maintains a registry of all service instances. It provides a way for services to register themselves and for clients to discover the location of a service. Eureka Client is a library that interacts with the Eureka Server to register, deregister, and discover other services. Eureka is a key component of the Spring Cloud Netflix project, which provides a set of tools for building microservices. Following are the benefits of using Eureka in Spring Boot: Service Discovery: Eureka helps in discovering services in a distributed system. High Availability: Eureka provides high availability by maintaining a registry of all service instances. Load Balancing: Eureka can be used to implement load balancing between service instances. Failure Dete

MERN stack

The MERN stack is a collection of technologies that developers use to build web applications using JavaScript. The acronym MERN stands for MongoDB, Express, React, and Node.js . The MERN stack is a full-stack solution that uses JavaScript and JSON to create a three-tier architecture. It's popular because it only requires one programming language, JavaScript. Each component plays a specific role in the architecture of a MERN application. MongoDB: MongoDB is a NoSQL database that is used to store data in a document-oriented format . This makes it ideal for storing JSON data, which is the native format of JavaScript objects. Express: Express is a web framework that is used to build the backend of a MERN application. It provides a number of features that make it easy to develop and deploy web applications, such as routing, middleware, and templating. React: React is a JavaScript library that is used to build the frontend of a MERN application. It provides a number of features that mak

Boot CRUD REST API vs Microservice

 A Spring Boot CRUD REST API is a web service. It is a specific type of web service that uses the Representational State Transfer (REST) architectural style. REST APIs are widely used for building web services, mobile apps, and other distributed software applications. A microservice is an architectural style that structures an application as a collection of loosely coupled services. Each service is self-contained and performs a specific function. Microservices can be developed and deployed independently of each other, which makes them more scalable and resilient than monolithic applications. A Spring Boot CRUD REST API can be used to implement a microservice . For example, you could create a microservice that exposes a REST API for managing user accounts. The microservice would be responsible for creating, reading, updating, and deleting user accounts. It would also be responsible for authenticating users and authorizing them to access specific resources. Spring Boot is a Java framewo

React.js + Node.js + Express + MongoDB

The MERN stack is a popular choice for building web applications. It is a full-stack JavaScript solution that uses MongoDB, Express, React, and Node.js. MongoDB is a NoSQL database that stores data in JSON-like documents. Express is a server-side web framework that runs on Node.js. React is a front-end library for building user interfaces. Node.js is a JavaScript runtime environment that allows you to run JavaScript code on the server. MERN is an acronym for MongoDB, Express, React, and Node.js, a collection of JavaScript-based technologies used to develop web applications.  React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. Bootstrap is a front-end framework that includes HTML, CSS, and JS-based design templates for typography, forms, buttons, navigation, and other interface components. It is one of the most popular front-end frameworks and is used by many developers to create responsive we