Magento an Adobe Commerce Microservices Trilogy
Adobe Commerce is famous Magento 2 eCommerce platform that uses outdated technologies — PHP, Zend Framework 1, Laminas, Knockout JS, RequreJS, jQuery, PrototypeJS, BackboneJS, RebbitMQ, Varnish…
Ever since the development of the Internet, the role of technology in the online retail industry has been immense. However, nowadays, it is difficult to find developers who wanna learn the outdated Magento 2 stack. Fortune 500 merchants want to hire top software development talents and use NodeJs, React, Python, Modern PHP Laravel, Serverless Cloud technologies.
In 2020 every Merchant can build their e-commerce functionality using modern frameworks and languages with the help of Magento Open Source Microservices libraries.
PyGento
Python Magento Micro Services
Magento 2 Python module to work with Adobe Commerce Database directly without using outdated Magento 2 Zend Framework 1 core
PyGento is built on top of SQL Alchemy.
SQLAlchemy is a library that facilitates the communication between Python programs and Magento databases. This library acts as an Object Relational Mapper (ORM) tool that translates Python classes to Magento tables and automatically converts function calls to SQL statements.
SQLAlchemy allows developers to create and ship enterprise-grade, production-ready Magento 2 applications easily and lets developers focus on business logic.
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
It provides a full suite of well-known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language.
NodeJS
NodeJS Magento Micro Services
NodeJS implementation of the Magento 2 ORM and Microservice Framework components without using legacy PHP Magento code.
This repo uses Sequelize to connect to the Magento 2 database directly without invocation of the Magento 2 PHP framework, so we won’t have to write any MYSQL queries.
Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
The Magento less microservice can be built using two primary packages — Sequelize Magento ORM and Express/Fastify.
The Sequelize package connects microservices to the Magento MySQL Database directly using ORM models. The Express.js is a web application server framework, designed for building web applications. It is the de facto standard server framework for Node.js. Fastify, as its name implies, was built with the intention of being a very fast Node.js web framework. Despite its main goal of speed, it actually does a very nice job of achieving our ideal controller syntax.
LaraGento
Modern PHP Laravel Magento Micro Services
Magento 2 has legacy code based on abandoned Zend Framework 1 with really ugly ORM on top of outdated Zend_DB component.
LaraGento repo is a collection of Model classes that allows you to get data directly from a Magento 2 database using modern ORM.
Laragento is a collection of PHP classes built on top of Eloquent ORM (from Laravel framework), that provides a fluent interface to connect and get data directly from a Magento database.
You can use legacy Magento 2 as the backend (administration panel), and any other PHP app (Symfony/Laravel/Lumen/Vanilla.PHP etc.) and query that data (as a Model layer). Of course, it’s easier to use Laragento with Laravel, but you’re free to use it with any PHP project using Composer.