Better HN
topnewbestaskshowjobs
Log inSign up

hckr1292

143 karma · joined May 29, 2014 (12y ago) · 87 submissions

Submissions

comment 1mo ago · link · parent

> Basically, Horizontal Pod Autoscaler but with sensors which are not just "CPU"

Since Kubernetes 1.23, there's support for using "custom metrics" to control HPAs: https://kubernetes.io/blog/2026/07/14/custom-metrics-exporte...

Is it somewhat convoluted to setup? Absolutely! But it's possible to use relatively robust and well supported built in controllers with custom metrics.

comment 11mo ago · link · parent

Right, so all of that is independent of mono vs poly repo.

comment 11mo ago · link · parent

That makes sense when you depend on a shared library. However, if service A depends on endpoint x in service B, then you still have to work out synchronized deployments (or have developers handle this by making multiple separate deployments).

To be fair, this problem is not solved at all by monorepos. Basically, only careful use of gRPC (and similar technology) can help solve this… and it doesn’t really solve for application layer semantics, merely wire protocol compatibility. I’m not aware of any general comprehensive and easy solution.

comment 11mo ago · link · parent

I’m curious about the authors experience with monorepo for marketing. I’ve found that using static site generators with nontechnical PMs resulted in dissatisfaction and more work for engineers that those PMs could handle independently in Wordpress/Contentful. As a huge believer in monorepo, I’d love to hear how folks have approached incorporating nonengingeers into the monorepo workflows.

comment 11mo ago · link · parent

Did you use turbo, buck or Bazel? Without monorepo tooling (and the blood, sweat, and tears it takes to hone them for your use cases), you start hitting all kinds of scaling limits in CI.

comment 2y ago · link · parent

Agree about the example! I can't tell if this article is tongue-in-cheek or earnest. I'm unclear on the point the author is trying to make.

comment 2y ago · link · parent

Scalability and cost -- Loki stores the the actual log data on S3 and only keeps an index of a few fields. Log queries that can then efficiently target the (hopefully small) set of files containing the data and loki can re-parse those specific files from S3 to display the log results.

comment 3y ago · link · parent

nushell is also amazing for exploring data quickly like this! I can't use it as a daily driver shell, but I just call it directly from whatever other shell I'm already in and then ^D back to my prior session when I'm done exploring. Works great and lets me visualize realllly nicely.

comment 3y ago · link · parent

I can't live without this anymore! However, occasionally sqlite won't quite guess the type affinity as I'd hoped for a column, then I do have to resort to enumerating all the types.

I find it slightly annoying to have to switch mode back to something reasonable again, since mode impacts query results as well as imports.

Despite doing this every few weeks, I can never remember what the commands are! The Zui might improve this workflow for me a bit. Worth a shot!

comment 3y ago · link · parent

Full disclosure, I currently work at Mux on the video product. Previously though, I worked at an education startup with user generated video content. Like many others commenting on this thread, I built a simple queuing system using RabbitMQ and celery, transcoding on EC2 with ffmpeg. While we might have saved some money by doing this in house, we almost certainly discouraged users from uploading content because the entire video needed to transcoded before it could be viewed. For use cases like the breaking news or high traffic user generated content, you really want to minimize wait time, and that requires some kind of special sauce. At Mux, we encode content just in time for very fast publish times. It’s very challenging to do this on your own.

comment 3y ago · link · parent

This is why QUIC/http3 is happening right?

comment 3y ago · link · parent

I've never seen nushell as a daily driver -- more as a data exploration tool. Have a random export you want to go splunking in? `nu` from your current zsh session and go wild. When you're done, ^D back to your main zsh session, job done. Whereas `jq` is only useful for json, and `xsv` is only useful for CSVs, `nu` offers uniform syntax for exploring many different formats and producing structured data out at the end as well. Neat!

comment 3y ago · link · parent

Can you saw more about this? I've never heard of anything like this and can't figure out if its genius or silly. Things I'm curious about:

* Are you working on a SAAS product or embedded/IoT project or hobby project?

* How do you aggregate the SQLite logs together from disparate machines? Seems like you probably can't use fluentbit/filebeat/etc.

* Where do you query these logs?

* How do you structure these logs? (timestamp, machine, message) or something with more columns?

* Are you able to capture stacktraces?

I _love_ the idea of leveraging SQLite for this kind of scenario and possibly skipping a lot of messy plumbing or pricy vendors, but I'm uncertain how this works.

comment 4y ago · link · parent

As a Rust fanboy, I mostly agree with this sentiment. Theoretically, Rust should prevent “security” issues arising from memory safety issues like heartbleed (maybe not actually heartbleed) but a good GC would too. I do think Rust does push a little harder on correctness via Result types and things like Sync/Send traits, but I don’t have much Java experience to fully compare.

However, type correctness won’t necessarily prevent a DDoS, stolen password, specter, timing attack, phishing attack, etc. Type safety is a nice-to-have but not sufficient for security in SAAS products.

comment 4y ago · link · parent

Have you considered making this a frontend to apache arrow or datafusion? It seems like Flink or kSQLdb could use this as an alternative syntax to produce the same physical queries. Love kusto!!

comment 5y ago · link · parent

Half true. The true half is that terraform will work out of the box with basically all clouds and many saas vendors. The untrue half is that terraform does nothing to abstract away the underlying vendor. You cant treat gcp VMs the same as aws EC2 instances. You do get to reuse HCL.

comment 5y ago · link · parent

The killer feature of harbormaster is watching the remote repository. Can docker-compose do that? If it can, I should just leverage that feature instead of harbormaster!

The nicety here on harbormaster seems to be that there are some ways to use the same code as a template in which specific differences are dynamically inserted by harbormaster. I'm not aware of how you could use docker-compose (without swarm) to accomplish this, unless you start doing a lot of bash stuff.

I also appreciate that harbormaster offers opinions on secrets management.

comment 5y ago · link · parent

Seems like a lot lower cognitive load and control. However, doesnt this effectively mean youre building lots of primitives from scratch?

comment 5y ago · link · parent

In my experience trying to configure AAD policies, AWS IAM and (to a very limited extent GCP IAM), it does not generally require a large investment in time. It does require a development account in which the developer has full access to IAM/AAD.

At my employer, we have a gatekeeper team who is terribly overworked and hardpressed to push back too much when business outcomes are at stake. One of the more successful things theyve done is create a terraform repo anyone can contribute to. They will review PRs and manually apply changes for production accounts. Whats great is that these folks can take my PRs that are 80% right and they are able to help me achieve least privilege better than I could on my own. However, other devs really dont care about least privilege and they tend to go for large open policies.

AWS's IAM policy is far and away the most sophiscated and granular, and even has a nice UI now. Trying to achieve this in Azure is next to impossible because you must have extremely high permissions to even be able to make new roles/policies that are super granular.

comment 5y ago · link · parent

Really? I haven't found anything else tempting enough to switch. Everything else I've looked at requires me to compromise on the many amenities I've come to expect from SF. Where would you suggest I look?

comment 5y ago · link · parent

I find this counterintuitive to my own lived experience of being in San Francisco as a programmer. Although my partner and I often talk about relocating, the comforts of San Francisco so far outweigh the disadvantages. Specifically, access to neighbors with children near our childrens age, 3 playgrounds in walking distance, dining, organic food, antiracist political sentiments, activities and easy access to mountains and beaches. Our alternatives in the Midwest, NY, or central valley would be far less convenient, despite the lower cost of living and homelessness, crime, and feces.

Perhaps my perspective as a parent and a programmer is not what this article is talking about, but I feel very committed to San Francisco and plan to raise my family here in the public school system and without relying heavily on cars.

comment 5y ago · link · parent

The http crate seems to be used by many popular frameworks: https://crates.io/crates/http/reverse_dependencies

It's used by at least Actix-web, Tide, Hyper, and Warp. Generally, this crate's types aree re-exported from the main framework so you can avoid adding extra dependencies to your application, but AFAIK the compiler can "see through" the type alias to see that the types are the same.

I think the older generations of web frameworks (like Iron, Nickel, and Gotham) might not have leveraaged the http crate, so your point still stands.

comment 5y ago · link · parent

Yeah, the very type-centric programming flavor of the ecosystem and strict type checking in the compiler mean that Rust developers will generally leverage guarrantees from the Rust compiler for all sorts of interfaces that you would never do in Python or Nodejs. It's frankly annoying in the kind of web api context that this author is describing and is another source of lost productivity.

So, Ruby has Rails, PHP has Drupal/Wordpress/etc, Python Django. However, neither Go nor Rust have a mature framework that makes it easy to spin up a CRUD app. I'm hopeful that some sort of project in Rust will rise up along the lines of Flaskrestplus in which resources are the primary abstractions. Resources could have codegen'd frontends built using something like react-admin so that you could build a fully functional web form in 100 loc or less. There's no reason the frontend bits couldn't be shared by Rust and Golang (and C++, D, Haskell, etc) frameworks.

comment 6y ago · link · parent

Can confirm

comment 6y ago · link · parent

The movie raises the question of what advertisers are paying for, and conclude it must be behavior modification. From public service announcements that smoking is bad for you to Tom Selleck endorsing reverse mortgages, it seems advertisers pay to "show me ads" believing it will alter someone's behavior at least a little. Given the scale of Facebook's data and the scale of Facebook's audience, advertisers can use Facebook to make small surgical modifications to a vast slice of humanity. To me, this is somewhat compelling argument that Facebooks' "show me ads" business model really is pay to "influence your behavior".

comment 6y ago · link · parent

Did we both work at a certain edtech company? Seems oddly specific and exactly how I remember our monolith being structured

27.

Ask HN: Google Alerts Alternatives?

3 points · by hckr1292 · 6y ago · 1 comment

comment 6y ago · link · parent

Would you ever turn down a job because of the office layout? I'm not sure if I would, and also not sure what jobs are out there where I could have my own office.

comment 7y ago · link · parent

I've had a similar experience. Switching IP address of my mail server lost me some reputation, but mostly just using the directions mailinabox.email has worked for me
123