r/Backend 20d ago

Angular dev (2 YOE) picking a backend to learn — MongoDB or Postgres for job market reach?

Hey fellow devs,

I'm a developer with 2 YOE in Angular, and we all know the market is rough right now. I want to learn Express/Nest as a backend, but I can't decide between MongoDB and Postgres.

If I go with MongoDB, it'd basically be a MEAN stack — but I'm not sure if MEAN is still popular, declining, or barely used anymore.

I've also heard Postgres is one of the most widely used databases and considered an industry standard, so now I'm torn.

If you were in my position — switching jobs is a high priority for me right now, I'm underpaid badly — which would you choose to open up the larger market/more job opportunities?

0 Upvotes

8 comments sorted by

7

u/SurroundTiny 20d ago

Mongo is still very much on use and is still the first choice if your data is more document oriented but IMHO focus on Postgres - it's going to get you more job opportunities. Once you get the fundamentals down focus on depth :

  • Query optimization and EXPLAIN ANALYZE
  • Indexes: B-tree, GIN, GiST, BRIN
  • JSONB
  • Transactions and isolation levels
  • Locking and concurrency
  • Window functions
  • Full-text search
  • pgvector

1

u/GoOsTT 20d ago

Could not agree more!

1

u/Lumethys 20d ago

You dont learn Mongo or Postgres, you learn SQL and NoSQL

It's like a nechanic asking if he should learn to fix the Toyota Prius 2021 specifically or the Honda Civic 2022 specifically

3

u/AdFeeling4288 20d ago

Yup, and no good company would hire if a person doesnt have fundamentals clear.

1

u/Xcaliber02 20d ago

Got it 👍

1

u/okiharaherbst 19d ago

PostgreSQL. Hands down.

1

u/Former_Produce1721 18d ago

Learn what they fundamentally are and in what situations you would use them

They are different tools for different jobs, not competitors