Upgrade to Pro — share decks privately, control downloads, hide ads and more …

“Why JS is way to go for backend”

“Why JS is way to go for backend”

Denys Pysmennyi “Why JS is way to go for backend”

GDG Cherkasy

February 15, 2019
Tweet

More Decks by GDG Cherkasy

Other Decks in Technology

Transcript

  1. Will talk about • NodeJS to start project • NodeJS

    && Microservices • How to make back-end good again
  2. DISCLAIMER: Language is just a tool, choose the right tool

    for the right job* *JS is still the best
  3. NodeJS classic MEAN set-up Express + ORM + Rest +

    generator(blueprints) = MVC https://sailsjs.com
  4. NodeJS performance • Each metric shows different result • Golang

    is really good at concurrency • Js seems to be better at high concurrency then Java • PHP looks promising and scary
  5. and we are hiring... • 15 million users • 500,000

    drivers • 25 countries • 100+ developers • 100++ misro-services
  6. So how to build good backend • Good framework for

    api • Good and right tests • What else?
  7. Good Backend: dependencies • Check dependencies • NPM scripts(rm -rf)

    • Use NPM proxy: Verdaccio • nodesecurity.io
  8. Good Backend: linters and code style • Little more Java,

    little less Ruby • Read some Uncle Bob • Choose code style https://github.com/airbnb/javascript • Configure Eslint Tslint
  9. Good Backend: async/callback • Callback are ok if you know

    how to cook them • async/await • if you need more than 2 states: go with streams
  10. Good Backend: async/callback • Callback are ok if you know

    how to cook them • async/await • if you need more than 2 states: go with streams
  11. Good Backend: some others tools • Debug: chrome://inspect debug from

    browser • Deno - ts runtime from Node creator • GraphQL
  12. Summary • Do NodeJS for fun • Do NodeJS for

    enterprise • Do NodeJS good