Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
murkt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
murkt
6y ago
If you want to communicate intent, put an underscore in the field name, like it's being done in Python. `field` is "you are invited to read/write this directly", `_field` is "please don't read/write this.&
212.
▲
by
murkt
6y ago
Yes, for example, it is much harder to rebuild a bridge in the middle of a city than it was to build anew. Maybe that bridge was constructed in the open field and now the area around is built up. There are a lot of traffic and it should go
213.
▲
by
murkt
6y ago
You mean in nine years its Backbone, then React, then server-side rendering? Yeah, that’s tech hopping every 6 months in its finest.
214.
▲
by
murkt
6y ago
I've sent you an email to the contacts in your profile.
215.
▲
by
murkt
6y ago
Over the years I've learned to do this very rarely. However, I'm not the lone wolf in the woods, I also have other developers working for me. I can talk to them however long I want and motivate them to debug locally to understand
216.
▲
by
murkt
6y ago
Maybe we are doing something wrong in our build and deploy process, we’ll going to re-examine all those things tomorrow. I would think it’s pretty reasonable right now, but someone here said their deploy cycle is 10 seconds long and there a
217.
▲
by
murkt
6y ago
10 seconds deploys? How is this possible :) Do you have any links that explain your workflow?
218.
▲
by
murkt
6y ago
Not sure what do you want to say with this command.
219.
▲
by
murkt
6y ago
I'm not using Kubernetes and I don't feel like using it at all. I want less abstraction layers, not more of them.
220.
▲
by
murkt
6y ago
Yep, I haven't said I'm "not using cloud", I said I don't use Heroku or AWS because they're expensive.
221.
▲
by
murkt
6y ago
Takes about 15-16 minutes for a full cycle from a push: – run tests (8 mins) — build images (3 mins) — deploy to stage (~2+ mins) — manual approve takes however long it takes to click a button, from 2 seconds to 2 weeks :) — deploy to produ
222.
▲
by
murkt
6y ago
> You write code, you push it, 5 Minutes later it is rolling out, tested, with health checks and health metrics. Yep, I have that. It's more like 15 minutes than 5 for me, but this process has nothing to do with containers - it can
223.
▲
by
murkt
6y ago
> Also, if you’re starting containers manually on the command line, you’re doing it wrong. At least use compose so your setup is declarative and lifetime-managed. As I wrote in a nearby comment, I'm not starting containers manually
224.
▲
by
murkt
6y ago
> If you need a hot fix "RIGHT NOW" you might be doing something wrong in the first place. Maybe I phrased this point badly. I haven't found myself to need a hot fix RIGHT NOW for a long time. What I had in mind was this:
225.
▲
by
murkt
6y ago
Yes, locally we use OSX apart from one developer who uses Linux.
226.
▲
by
murkt
6y ago
Hmm, not sure I understand why you put code in one image and then use it as a volume for other containers. Why not run directly from the volume with the code?
227.
▲
by
murkt
6y ago
We're renting bare metal servers from Hetzner. It's multiple times cheaper than AWS. We have lots of data, and to handle it with no problems our DB server has 512 GB of RAM and 24 cores (AMD EPYC). How much does it cost to have a
228.
▲
by
murkt
6y ago
> Also, really important, going "old-school" doesn't free you to have a full stage environment, and a well thought and fault-resistant architecture and good backups. Of course! We have a full stage environment, good backup
229.
▲
by
murkt
6y ago
My startup would have gone bankrupt a couple of years ago if we would use something as expensive as Heroku. Or AWS.
230.
▲
by
murkt
6y ago
Local environment specifically isn't fully containerized in my project. DB and similar things (elasticsearch, message queue) locally are inside containers, but the code itself is not. I worked on a project before where I had to have it
231.
▲
by
murkt
6y ago
Yep, storage and networking are two things that I haven't mentioned in the post but they definitely annoy. Sometimes (rarely but it happens) network breaks and Docker Swarm falls apart, we then have to restart it. Storage is ughh.
232.
▲
Ask HN: Has anyone migrated off containerized infrastructure?
345 points
by
murkt
6y ago
|
358 comments
233.
▲
by
murkt
6y ago
I use a simple framework-agnostic tool for tracking and applying migrations, it also supports dependencies between migrations. Migrations are automatically applied on deploy to stage/production, so you don’t forget to do it. I prefer t
234.
▲
by
murkt
6y ago
> I would say that performance and correctness are competing What an interesting way to look at performance.
235.
▲
How not to use jsonb fields and their indexes in PostgreSQL
(vsevolod.net)
5 points
by
murkt
6y ago
|
0 comments
236.
▲
by
murkt
6y ago
MeiliSearch is exactly not Elastic-like search server. It should work out of the box for its intended use case (fast typo-tolerant search), and it doesn’t support basically everything else. No complex queries, no aggregations, no big datase
237.
▲
by
murkt
6y ago
What do you mean by “it’s implementation dependent”? RETURNING is a Postgres-specific clause, so of course its order is implementation dependent. There is only one Postgres, as far as I know.
238.
▲
by
murkt
6y ago
I would be very surprised to learn that RETURNING order is different from the order of rows in INSERT statement. Some ORMs (at least SQLAlchemy) do that already, they can fill primary keys in your objects during single inserts, and in dicts
239.
▲
by
murkt
6y ago
It is much faster than INSERT indeed and I’m using it in places where I need to insert a lot of data into Postgres. Can you get RETURNING from COPY, though?
240.
▲
by
murkt
6y ago
Oh wow, good to know, I’ll check if I have such things in my codebase. Which version of the Postgres are you using?
More ›