are there any blogs that go over winning combinations of cloudflare workers products for different u
are there any blogs that go over winning combinations of cloudflare workers products for different use cases?

cloudflare:sockets to talk to DBs today, like postgresprepare: false these days - hyperdrive is well optimised for prepared statements, but yes exactly. Drizzle + postgres + hyperdrive on Workers is awesome.prepare: false in my stuff and haven't seen any issues yet.prepare: true or omit it because it defaults to true.postgres library paired with Hyperdrive, and then you can use your ORM library of choice like drizzle or prismspostgres @neondatabase/serverless and just use postgres if you can - it doesn't provide much benefits nowadays.useDB function that you pass in your env, and it returns a DB client, and then you can also re-use them across different endpoints, etc. if you're running hono or some other router where your logic is split into multiple files
https://dash.cloudflare.com/{userId}/workers/services/view/{project}/production


cloudflare:socketsprepare: falseprepare: falseprepare: true@neondatabase/serverlessuseDBhonohttps://dash.cloudflare.com/{userId}/workers/services/view/{project}/production "placement_status": "INSUFFICIENT_INVOCATIONS",export const getDbString = (env: Env) => {
// Check for override first
if (env.OVERRIDE_CONNECTION_STRING) {
return env.OVERRIDE_CONNECTION_STRING;
}
if (env.HYPERDRIVE?.connectionString) {
return env.HYPERDRIVE.connectionString;
}
return env.SUPABASE_DATABASE_URL;
};import postgres from "postgres";
// ...
const postgresInstance = postgres(url, {
max: 10,
idle_timeout: 20,
prepare: false,
onclose: (connId) => {
numConnections--;
if (debug) {
console.log(
"Postgres connection closed, connId:",
connId,
"numConnections:",
numConnections,
// stack,
);
}
},
});
return drizzle(postgresInstance, { schema });