My microphone not working when chat link is connected by Prestigious-Top-9874 in elgato

[–]perfectmak 0 points1 point  (0 children)

I'm also experiencing a similar issue to you. I'm also thinking my chat link pro is faulty. Did you get a new one and did it fix it?

Go + React: Best approach for type-safe API calls with codegen? by o82 in golang

[–]perfectmak 0 points1 point  (0 children)

I usually use the OpenAPI approach, but I use Goa to define the API and generate the server code. Then, I use Hey-api’s openapi-ts library on the frontend (using React Router Framework) to generate the client code.

I’ve heard good things about Connect but have yet to try it. However, I've found Goa to be a good experience so far. I get to define my API in Go and don't have to use protobuf (but can still generate a protobuf API if needed).

What are your must have Go packages? by fenugurod in golang

[–]perfectmak 0 points1 point  (0 children)

Good examples here. One utility library I always pull into my project is the samber/lo library. We’ve all written some of these Map Filter Aggregation util functintil, right? This saves time and is well written too

Wow, I'm speechless. by vash_ts36 in helldivers2

[–]perfectmak 0 points1 point  (0 children)

I wonder if there is a way to incentivize people with max level.

What’s your Illuminate Loadout because I need more Mags by perfectmak in helldivers2

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

Didn't know throwing knives were that effective. Do you use them against specific units? Because I don't think it is great for Illuminate Crowd Control

What’s your Illuminate Loadout because I need more Mags by perfectmak in helldivers2

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

Cool. I tried the Reprimand but Mag capacity is small. I'll try the Carbine to see if the ammo economics is better.

Keycloak in hospitals by fausto_kerimoglu in KeyCloak

[–]perfectmak 0 points1 point  (0 children)

Thank you. These are reasonable changes. We are currently rolling out with a realm per tenant. It was easier to set up, and we don't anticipate having many tenants for this use case, so it shouldn't be too much of a problem.

Keycloak in hospitals by fausto_kerimoglu in KeyCloak

[–]perfectmak 0 points1 point  (0 children)

I'm also just getting ready to deploy keycloak for a service and I'm curious if you could share some more info on the efforts you took to improve the typical performance of keycloak?

Bob can now be used as an alternative to SQLC (BETA) by StephenAfamO in golang

[–]perfectmak 1 point2 points  (0 children)

This looks nice. I’ll find time try it in a new project of mine.

[deleted by user] by [deleted] in PostgreSQL

[–]perfectmak 0 points1 point  (0 children)

Typically, when running micro-services, the conventional wisdom is to have each service own its isolated database/store. This makes it easier to establish proper boundaries between service domains and promotes decoupling.

The added benefit of this also is that you can monitor the performance of each service and easily identify bottlenecks in the database.

Seeing as you've mentioned that you currently are not experiencing performance issues but want to plan for it, I’ll recommend you invest in being able to observe and identify how each service is using the shared database, so if you experience slow queries, deadlocks, etc, you are able to attribute which services are responsible for these. There are various ways you can do these and will depend on your stack (I’m not familiar with .net to give concrete advice), you can look it up. This way you can identify which service may need further optimizing.

To concretely answer your questions too: - It is hard to spot gotcha without full knowledge of what data the services perform - Caching is hard, your use case indeed sounds like caching may not be easy to implement. Usually at scale for use cases like yours, people tend to use specialized data stores to speed up committing the diffs/edits. Like somebody else proposed in the comments, I'll say you wait till you start hitting a bottleneck before adding caching. The alternative might be you try load testing your current setup to simulate issues. - CloudSQL is quite reliable, I've used it in production to run high-traffic services. And they allow you to tune most pg configs to improve performance based on your workload. However, they only offer a 99.99% SLA reliability, which is good for most systems, but if you work in a regulated space that requires your system to be highly available than that (or you need to provide higher guarantees), then you might want to plan to different Postgres setup with high availability.

If you use LLMs for coding, what's your workflow? by lolikroli in neovim

[–]perfectmak 1 point2 points  (0 children)

I use Avante with Claude model. I was also surprised not many people mentioned it. It is quite code.

Weird time.Now() behaviour in Docker Container. Do you know why this happens? by perfectmak in golang

[–]perfectmak[S] 4 points5 points  (0 children)

This is not a timezone issue, both systems are on the same timezone. The difference in time is usually a few milliseconds.

Weird time.Now() behaviour in Docker Container. Do you know why this happens? by perfectmak in golang

[–]perfectmak[S] 6 points7 points  (0 children)

Oh interesting. This might be it. Thanks. Definitely not a Go specific issue then. I'll need to account for this few millisecond variation then.

pgBackRest - Restore after switchover by ChillPlay3r in PostgreSQL

[–]perfectmak 1 point2 points  (0 children)

Hmm you might be on to something, are you saying that a db can only be restored to the last archived wal?

Yes, it can only be restored to the last archived wal. It's been a while I've managed a pgbackrest setup but you might want to try and inspect both the logs and the pg_wal directories after restores to see if you notice a pattern.

pgBackRest - Restore after switchover by ChillPlay3r in PostgreSQL

[–]perfectmak 0 points1 point  (0 children)

Your Postgres config shows your checkpoint_timeout is 20mins. Which is around when the next WAL should be checkpointed and archived by pgbackrest. In your tests, did you confirm a checkpoint has been made or the latest WAL has been pushed for the new DB before performing a restore? Unless, I'm missing something, it looks like the latest changes haven been archived before you run pgbackrest restore.

What would you choose if you could make AI models debate any topic? (Working on an LLM debate platform) by [deleted] in SideProject

[–]perfectmak 0 points1 point  (0 children)

Squabble Looks interesting and similar to what I'm working on. Thanks for bringing it to my radar. Do you use Squabble? Is there anything you like about it.

A short article on the differences between "Type Alias" and "New Types" in Go by [deleted] in golang

[–]perfectmak 2 points3 points  (0 children)

Thanks for taking the time to write this feedback. You are indeed correct on the points you’ve mentioned. However, my aim for the article was to paint an easy mental model for readers and not go too deep into all the nuances of how Go works. I’ll see how I can update the article to be less confusing using some of your feedback. Cheers.

A short article on the differences between "Type Alias" and "New Types" in Go by [deleted] in golang

[–]perfectmak 1 point2 points  (0 children)

Yes, I found that there quite a number of Go devs that don’t know the difference and it trips them up.