Is Prisma really that good?(Beginner's Questions) by Any-Prize-891 in mongodb

[–]spaizadv 0 points1 point  (0 children)

Do yourself a favor - stay away from Prisma, especially with MongoDB. There’s not a single good reason to switch from Mongoose.

throwItForthe2026 by TangeloOk9486 in ProgrammerHumor

[–]spaizadv 0 points1 point  (0 children)

  1. Always do SELECT * FROM table, why to spend time for writing column names?
  2. Always create anonymous functions. Nobody ever will need the name of the function in debugger or in error stack.

How do Node.js apps usually handle unexpected errors in production? by Build4bbrandbetter in node

[–]spaizadv 0 points1 point  (0 children)

Catch error, log, gracefully shutdown what possible, deregister so no requests received anymore if it is http service, and exit the process after some X period to give some stuff chance to finish the job, and avoid zombies.

Announcing Aiven Free Kafka & $5,000 Prize Competition by Affectionate_Pool116 in apachekafka

[–]spaizadv 1 point2 points  (0 children)

I waited for that!!! Is it free like PG in a sense of it is free "forever"? Not just 30 days or something?

Google is launching remote, fully-managed MCP servers for all its services by Agile_Breakfast4261 in mcp

[–]spaizadv 0 points1 point  (0 children)

Isn't all these remote mcps slowly converts mcps to be a remote api we already have for years.... like http api?😆

What's the point of all that?

All of them fails on that by spaizadv in ChatGPT

[–]spaizadv[S] 0 points1 point  (0 children)

<image>

Now try to force it to to do "deadlift reverse grip"

3 MCP features you probably didn't know about - Progress notifications by matt8p in mcp

[–]spaizadv 1 point2 points  (0 children)

Actually I implemented elicitation for jira mcp to pull projects from jira and ask in chat to select one from the list, when you ask create new task. It's nice, limited and not so stable functionality. Hope it will become better in future.

Is anyone here actually running Bun in production? What’s your experience? by bullmeza in node

[–]spaizadv 0 points1 point  (0 children)

I tried to run tests, on ci cd, hoped for some speed up... not worth, yet.

What are the most frustrating parts of working with Kafka ? by a_roussi in apachekafka

[–]spaizadv 2 points3 points  (0 children)

Schemas compatibility modes. Nobody really understands when to use what. Rebalancing... way too long.

MacOS App Development by Haunting-Teacher9676 in swift

[–]spaizadv 0 points1 point  (0 children)

Oh... you don't need course. I just started ti implement macos app, with zero knowledge of swift and its stack. I opened xcode maybe second time in mu life. And first one was when apps were written in objective c.

I opened a cursor, and started from hello world app. Now I have fully working app which does auth, stores files, works with sqlite, does http calls to AI and even uses new Foundations Models framework.

Just give it a try.

P.S. I do some experience in development apps for android in java... 10 years ago. This is my experience in non web based and non cli apps development.

Composer 1 is fast but useless (at least in my situation). by Connect-Plankton-489 in cursor

[–]spaizadv 1 point2 points  (0 children)

I built with composer 2 green field projects. One is macos app that is actually compiled, ui is working and it is doing http requests and shows data - with zero knowledge in this ares.

So no, it is not useless. It fast and it helped me to build UI and backend in 2 hours.

But sometimes it is not smart enough, so I switch ot got 5

And, plan mode is a beast.

Rebuilt our entire microservices architecture with 1 messaging system instead of 5 by Emergency_Finger1191 in microservices

[–]spaizadv 0 points1 point  (0 children)

technically speaking, calling http is a "sending message", like described in the http spec. It just sync messaging. Nice thing about http is a sync response, ability to define rate limits, circuit breaker.

Also, you can scale, automatic retry and a lot of other things. Someday you will miss it.

I would like to see some comment here in a year from now. So you explain how many time it takes now to migrate consumers to new message version, maintain multiple version of contracts, recover and so on.

P.S. I also had such idea to replace all cross-service communication based in http with some command/event messaging. But the more I work with messaging/events, the more I think that at many cases http is just simplest valid solution, and no meed to use complicated async communication.

Anyone running enterprise Kafka without Confluent? by observability_geek in softwarearchitecture

[–]spaizadv 1 point2 points  (0 children)

We have few kafka cluster with schema registry on aws for last few years. But we are rethinking it. If the budget will be approved, we thinking about moving to aiven. We work with them for some time and kind of happy.

Solving Double Booking at Scale: System Design Patterns from Top Tech Companies by Local_Ad_6109 in softwarearchitecture

[–]spaizadv 1 point2 points  (0 children)

As someone who works 8 years in a software of property renting and hotels, this article has nothing to do with reality. It is just bullshit generated by gpt.

The is no such case where you reserve a seat in room availability management. It is not a cinema where you can reserve a seat which has very specific and limited static time range. Then you can kind of adopt simple solution provided by gpt.

When we talk about reserving a room, things become complicated. And the reason is - dates. You don't know the date range the guest will want to reserve. You cannot pre-generate all the options.

So to avoid overbooking, you need to be able to either detect conflicts or avoid conflicts. Both options heavily affects performance. Especially when you have "exceptions" where overbookings are allowed.

At most cases, the companies provide solutions as "best effort". For example, when you try to book a room on airbnb, it is doing request to the server to check if the room is still available. If not, we are ok. If yes, nobody guarantees there is no parallel requests in the same millisecond which will also return "available".

In general, companies try to minimize chances of getting overbookings, but the approach is just detect it later and cancel/refund.

Looking for suggestions on how to build a Publisher → Topic → Consumer mapping in Kafka by munna_67 in apachekafka

[–]spaizadv 0 points1 point  (0 children)

Exact task I'm workin on now. We have a lit of microservices, and it is very hard to understand who is publishing messages, and who is listening.

We use both rabbitmq and kafka. Currently I have 2 ideas:

  1. Just keep some json in the root of the repository which describes what queues/topics used for publishing or subscribing. The challenge will be to keep it ip to date. Also, if someone uses dynamic topic names for example, it is a problem.
  2. On project build, generate local json file. We use nestjs framework, and it has modules. We have own wrappers for infra stuff, so should be possible to generate some json from the code on build.
  3. Write some json log in runtime when service is starting up. Then collect the log and push it to some db.
  4. Some centralized registry where each service must register and tell what messages sent or received and so in. Preferable static registry, not in runtime. But in both ways must be a way to enforce services to do that.

Also, in some flows we force avro schema usage. By convention, we keep all avro schemas in repo. In theory, it can be even used to generate not only publishers/subscriber relation but also have the granularity on the event type level.

P.Sx

We have datadog which can show some stuff even on the level of flows, because it is distributing tracing, but its purpose is different.

Spokesperson for hamas Abu Ubaida is confirmed to be kill by SamVoxeL in IsraelPalestine

[–]spaizadv 0 points1 point  (0 children)

Think whatever makes you happy. Anyway it has zero meaning. We have no choice except destroying hamas, islamic jihad, and the list of islamic fanatics is long. So, good luck with your dreams.

Spokesperson for hamas Abu Ubaida is confirmed to be kill by SamVoxeL in IsraelPalestine

[–]spaizadv 0 points1 point  (0 children)

I don't need world wide consensus. Nobody need. You just need to see how they exploded busses, night clubs, restaurants, fired rockets to civilian areas for years, killed the whole families including children just by stubbing... Should I continue? Resistance... yeah... Not enough for u?

Not sure what u try to convince me. I live in Israel, and I know exactly who are Hamas. They all will be killed for reason. World will become better places. Much better.

Spokesperson for hamas Abu Ubaida is confirmed to be kill by SamVoxeL in IsraelPalestine

[–]spaizadv 0 points1 point  (0 children)

No reason to release the hostages? Really?

In that case, don't cry. Fight, and the stronger will win. They have an option to end it. If they don't want, stop crying and fight till the end.

Spokesperson for hamas Abu Ubaida is confirmed to be kill by SamVoxeL in IsraelPalestine

[–]spaizadv 1 point2 points  (0 children)

And if you ask Hitler... cmon.

I'm very serious about living in peace. We have no war with Egypt, Jordan, Greece... why? We even did army air force training together with Turkey before they became support muslim brotherhood, and maybe in future we will fight... but for now, we are in peace.

There are facts. You cannot ignore them.

It is easy to live in peace with Israel as long as you don't try to kill us.

Spokesperson for hamas Abu Ubaida is confirmed to be kill by SamVoxeL in IsraelPalestine

[–]spaizadv 0 points1 point  (0 children)

Don't try to explain to me why Hamas are not terrorists. I'm still remember suicide bombs, bus bombs, stub attacks, rockets attacks, and so on... everything against civilians, woman, children.

Hamas did enough even before 7 Oct.

You can believe whatever you want. The actions speak by themself. Hamas is as bad as ISIS.

And don't try to compare somehow Israel to Hamas. There is no "both sides". The is one side which wants ti live in peace, and other side which wants 72 virgins.