Restful architecture and application integration

Restful architecture


  • modular hexagonal or layered architecture 
Architecture can further be divided into a module or layered and each layer/module is responsible for one functionality, like layer MVC or module in node.js
  • Presentation — UI 
A UI is only responsible to present view to the user like button, chart, table, and will communicate with backend via a protocol like HTTP 

  • Business logic — the application’s business logic.
All business logic will be present in a Controller like we have in ruby on rails
  • Database access —  
there can be a database access layer or models which will communicate to database or map data to the database like we have sequelize js/ mongoose in node.js
  • Application integration — integration with other services (e.g. via messaging or REST API).
Most application are now dependent on other services like twillio apis, google map apis, braintree , stripe
so integration with other application is also important 


0 comments:

what is difference between VM (virtual machines) vs Containers

Virtual machines


  • Specialized software, called a hypervisor, emulates the PC client or server CPU, memory, hard disk, network, and other hardware resources completely, enabling virtual machines to share the resources. The hypervisor can emulate multiple virtual hardware platforms that are isolated from each other.

Containers


  • Instead of virtualizing the hardware stack as with the virtual machines approach, containers virtualize at the operating system level, with multiple containers running atop the OS kernel directly. This means that containers are far more lightweight: they share the OS kernel, start much faster, and use a fraction of the memory compared to booting an entire OS.


Conclusion:


These days containers are the most popular technologies used in DevOps, like docker and kubernetes

0 comments: