DEV Community

Jessé
Jessé

Posted on • Edited on

Back-end com Node.js

Node.js
NPM e YARN
Frameworks

O Node.js é:

  • Uma plataforma;
  • Criada em cima do V8;
  • Comparável à PHP / Ruby / Python;
  • Arquitetura Event-loop
    • Baseada em eventos (Rotas na maiorias das vezes);
    • Call Stack
  • Node single-thread
    • C++ por trás com libuv;
    • Background threads;
  • Non-blocking I/O;
  • Faz o controle de rotas e integrações;

Call Stack
Call Stack é uma estrutura de dados de Pilha, então a primeira que entrou será a última a ser processada.
Last In First Out (LIFO);

NPM e YARN são:

  • Gerenciadores de bibliotecas;
  • Servem criar, disponibilizar e instalar bibliotecas. Tanto de terceiros, quanto as suas, caso tenha criado alguma;
  • Yarn é mais rápido que NPM.
  • Comparável com:
    • Composer do PHP;
    • Gems do Ruby;
    • PIP do Python;

Frameworks:

  • ExpressJS
    • Sem opinião: Não tem uma estrutura fechada;
    • Ótimo para iniciar;
    • Micro-serviços;
  • Outras opções:

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️