Herman J. Radtke III

Results 96 comments of Herman J. Radtke III

I used `cargo bench --bench soldr-benchmark -- --profile-time 120` to generate a bunch of test data. Note: Make sure `sqlite:soldr.db?mode=rwc` is the database url With ~100,000 requests and attempts (many...

A lot of this is fixed in https://github.com/hjr3/soldr/pull/46

Regarding stampede, this client side throttling strategy is interesting https://cs.stackexchange.com/questions/43149/algorithm-for-dynamic-client-side-throttling https://www.cmcmarkets.com/en/trading-guides/exponential-moving-average > How to calculate the EMA > > In order to learn how to calculate the exponential moving average,...

There is feedback via the logs, but maybe we should consider this. What status could would you expect?

I think it would be a 404 or a 400. If `curl -H "Host: example.wh.soldr.dev" localhost:3000/ -d ''` does not have a valid origin then a 404 makes the most...

There are more problems with having `ConnectionOptions` match `ClientConfig`. See https://github.com/brianc/node-postgres/issues/2280 We landed https://github.com/brianc/node-postgres/pull/3128 to remedy this issue. Please let me know if you are still having problems.

This appears to be blocked on: - a new version of httparse that includes https://github.com/seanmonstar/httparse/pull/147 - running `sh capi/gen_header.sh`

> Hm, at this level, I would probably assume the caller could enforce this limit. Since this library just parses headers from a slice that the caller owns. My thinking...

Use the `sslcert` query parameter. https://github.com/brianc/node-postgres/blob/373093d176f0ceb0266333680b20d0acf38004e3/packages/pg-connection-string/README.md#L73 Example: https://github.com/brianc/node-postgres/blob/373093d176f0ceb0266333680b20d0acf38004e3/packages/pg-connection-string/test/parse.js#L220-L226

> If I run this query on the database, it takes less than 1m to execute (using EXLAIN ANALYZE). This will only tell you how long it takes to execute...