- A Byte of Coding
- Posts
- A Byte of Coding Issue 374
A Byte of Coding Issue 374
A Byte of Coding Issue 374
Yo,
Another day, another issue.
Published: 25 March 2024
Tags: distributed systems, algorithms
Marc Brooker explores how the best-of-k algorithm performs in load balancing a distributed system.
Some highlights:
best-of-k algorithm can be described as “we pick k of the n workers, and send the request to the least loaded of those k”
uses simulations to back up theory
best-of-k performs poorly on systems that have a lower max capacity per worker
Published: 25 March 2024
Tags: sql server, database, optimization
Aaron Bertrand dives into how to best do pagination in a database when you’re ordering by values that are too large to fit in an index key.
Some highlights:
one approach can be to create a computed column that is derived from the larger column, but limited to a smaller size
any value over 1,700 bytes can’t be indexed
alternative solutions for when you can’t modify the schema are also presented
Published: 1 June 2023
Tags: sponsored, auth
WorkOS describes the meaning of and provides additional resources (for further reading) for OAuth, OIDC, and SAML.
Some highlights:
“OAuth is not an authentication protocol”
OIDC is built on top of OAuth
SAML is used for federated authentication
Published: 22 March 2024
Tags: php, testing
Brent Roose describes his thought process when setting up a maintainable system that required a lot of tests for a php syntax highlighting project.
Some highlights:
uses a data-as-code approach
tests are dynamically generated
one downside is that you can’t run a specific test without first running the whole test suite
Web Intelligence, Unlocked
With Bright Data's proxies, you can unlock and analyze extensive datasets at scale for ML/AI innovations in Ecommerce, Travel, and Finance. Leverage our flexible, scalable services to drive data-driven decisions.
Thanks for your Support!
Big thanks to all of the Patreon supports and company sponsors. If you want to support the newsletter you can checkout the Patreon page. It's not necessary, but it lets me know that I'm doing a good job and that you're finding value in the content.