Posts

Showing posts from March, 2021

REST API Architectural Constraints

Image
What is REST API? HTTP requests, such as GET, PUT, POST, and DELETE data use in RESTful API. It is an Application Program Interface(API). REpresentational state transfer(REST) can be thought of as a language of the Internet, which is used by browsers.  REST architectural module contains six constraints that are in any web service.  Uniform Interface  Stateless Cacheable Client-Server Layered System Code on Demand Let's look at what are those... 1. Uniform Interface To identify the difference between REST API and Non-REST API, this key constraint is used. When interacting with a given server, without think of the device or the application type such as a website or mobile app, is useful if there are is recommended way to communicate with these devices or applications. Basically, there are four guidelines use in Uniform Interface. There are, Resource-Based: Individual resources are identified in the request is simply known as each resource must-have unique and cohesive URI and also it

REST services and KoaJS

Image
RESTful services REST stands for REpresentational State Transfer protocol. Resources-based - Things are built around resources or services. URI are resources identified. The same resource may be referred to by multiple URIs. To pass data used XML or JSON. Scalable, maintainable, and also lightweight. HTTP Verbs GET - to get  resource POST - to input new resource PUT - to replace an included resource DELETE - to remove a resource OPTIONS - to get allowed for all options HEAD - to get only the response header Koa - Next generation web framework for Node.js Introduction Koa is a new web framework design and developed by the same development team that, designed the Express. The aim of developing this framework is to develop a framework that is smaller and as well as more expressive and also for the robust foundation for web application and web API. By influencing to increase async functions, Koa allows trench callbacks and  slowly  increases error-handling as well. Koa doesn't allow to

Introduction to NodeJS

Image
What is NodeJS ?? NodeJS is open sourse serer envirnmont and it is free. NodeJs will run on various platforms, such as Windows, Mac OS, Linux and etc. It uses JavaScript on the server and is a network application. NodeJs was developed by Ryan Dahl and his motivation for creating this NodeJS was to create real-time websites with push capabilities. Build based on Chrome's JavaScript, V8 engine. Uses a non-blocking I/O model and event-driven which makes NodeJS lightweight and efficient. Across the distributed system,  ideal for the data-intensive real-time applications run. Libraries that help with basic programming that comes along with the JavaScript to build NodeJS.  The 'npm' world's largest open-source library included in the NodeJS ecosystem. Use cases The best platform for CPU-intensive heavy computation applications in NodeJS. It's best for building network applications when is focusing on fast and scalable. When we have to handle a huge number of simultaneous

What is MongoBD ?????

Image
Introduction to the MongoDB MongoDB is a documented database and it is designed for development and scaling. Most importantly because of its flexibility, we can include the queries and indexing as per our requirement. MongoDB store the data like JSON documents because it data stored field can vary from document to document. In addition to that data-structure can vary from document to document over time. The document model in MongoDB, making data easy to work by mapping the objects of the application code. It gives permission in a powerful way to access and analyze data in Ad hoc queries( variable dependable value with a short-lived command), indexing, and real-time aggregation. MongoDB has three qualities they are availability, horizontal scaling, and last geographic distribution. These qualities are easy to use and build. MongoDB is free to use its available on the MongoDB site. Why MongoDB Special? MongoDB was designed to meet the modern demands and it builds according to its need. I