HN user

lukecarr

163 karma

[ my public key: https://keybase.io/lukecarr; my proof: https://keybase.io/lukecarr/sigs/dljU1g0xd4BOsiaml3c40hJcCFk_0P_yOPubemqpTFI ]

Posts9
Comments11
View on HN

Have you given Hyperdrive[0] a try? In theory, it should improve performance in your use case where you have a central database (Railway) being connected to from the Edge (your Workers).

It moves the DB connection logic closer to your Workers, pools connections, and can also cache queries.

(Disclaimer: I work for Cloudflare, but on an unrelated team. Not personally used Hyperdrive, but heard good things!)

[0] https://developers.cloudflare.com/hyperdrive/

Awesome, great job on the site! I saw it on the Slack, and was surprised at the level of detail in some of the pages like the tooth selection screen :D

It also got a good chuckle from those I shared it with at work! :)

Can't speak on behalf of GP, but I suspect when they said "require," it's more loose than that. I've experienced UK schools that have a shared pool of iPads for students who haven't got a compatible device (for a multitude of reasons). So in that sense, students "require" a device from the perspective of learning, but don't "require" to own one outright (so it's not a barrier to education).

I've found that for this sort of thing, @next/font (https://beta.nextjs.org/docs/optimizing/fonts) is a pretty handy library (from Vercel) for Next.js projects. You can import Google Fonts as simple as:

  import { Roboto } from '@next/font/google'
  const { className } = Roboto({ weight: '500' })
Now you can add this class name to any React elements and they'll have the Roboto font. Next.js will handle all of the self-hosting and wiring behind-the-scenes (i.e. no requests made to Google from the client).

Believe this was one of the announcements to come out of the most recent Next.js conference, so info may only be available on the beta version of their docs site (linked above).

Whelp, this couldn’t have happened at a funnier time for me. I’ve been pushing for their paid solution to be used in our team for months, finally got the sign off from compliance, etc.

Outage occurs halfway through my presentation to the whole team, shortly after I’d been discussing how great it would be as a robust, highly available storage solution for our knowledge base!

Can’t help but laugh at the timing.