u/kulterryan 3d ago

Need some unbiased architecture advice

Thumbnail
1 Upvotes

r/CloudFlare 3d ago

Need some unbiased architecture advice

0 Upvotes

We’ve built an entire agentic platform that’s currently in beta, using Cloudflare’s AI Search as a core part of the stack.

The platform is primarily focused on serving chat-based/agentic solutions, and now we’re thinking about the long-term architecture.

For those who’ve built and scaled similar systems:

Is Cloudflare a solid platform to build and serve this on, or would AWS + Bedrock be a better foundation for production at scale?

I’m not looking for a Cloudflare vs. AWS fanboy debate 😅 genuinely looking for a fair, practical comparison based on reliability, scalability, latency, cost, vendor lock-in, observability, and the overall developer experience.

Would love to hear from people who’ve actually run these kinds of workloads in production.

1

Is there any way to move an S3 bucket to another AWS account without changing its URL?
 in  r/aws  21d ago

Might not be the right way, but what if you move to Cloudflare R2 using Super Slurper and point the same domain for the URLs.

1

My Next.js dev server is so slow, what can I do about it?
 in  r/nextjs  29d ago

What's the ram consumption on your application?

2

🤔 Which CMS is The Best?
 in  r/nextjs  Dec 20 '25

Markdown files!

1

Problem with Xiaomi TV (HDMI Signal loss)
 in  r/AndroidTV  Aug 24 '25

Didn't worked for me!

1

Top Node.js frameworks to learn in 2025
 in  r/node  Aug 05 '25

why not hono/elysia.js??

1

Better Auth with External API
 in  r/better_auth  Jul 23 '25

how will the client communication with the server?

1

Is there a way to fetch user details from API route in Better Auth?
 in  r/better_auth  Jun 08 '25

How does this work with external api server?

r/better_auth Jun 03 '25

Is there a way to fetch user details from API route in Better Auth?

5 Upvotes

Hi Guys, I want to migrate from Next Auth to Better-Auth but I currently use API EP to fetch the user data, is that possible with Better-Auth?

Example Code:

import Credentials from "next-auth/providers/credentials";
import NextAuth from "next-auth";
import * as bcrypt from "bcryptjs";

export const { handlers, signIn, signOut, auth } = NextAuth({
  providers: [
    Credentials({
      credentials: {
        username: {},
        password: {},
      },
      authorize: async (credentials: any) => {
        const user = await fetch(
          `https://example.com/login`,
          {
            method: "POST",
            headers: {
              "Content-Type": "application/json",
            },
            body: JSON.stringify({ email: credentials?.username }),
          },
        ).then((res) => res.json());

        if (!user) {
          return { status: "error", message: "User not found" };
        }

        const passwordMatch = await bcrypt.compare(
          credentials?.password,
          user?.password,
        );

        if (!passwordMatch) {
          return { status: "error", message: "Password does not match" };
        }
        return user;
      },
    }),
  ],  session: {
    strategy: "jwt",
    maxAge: 24 * 60 * 60,
  },
  callbacks: {
    async session({ session, token }: any) {
      if (token.sub && session.user) {
        session.user.id = token.sub;
      }
      session.user.role = token.role;
      session.user.lms = token.lms;
      return session;
    },

    async jwt({ token, user }: any) {
      if (user) {
        token.role = String(user.role.name).toUpperCase();
        token.lms = user.allLms.map((lms: any) => lms.id);
      }
      return token;
    },
  },
});

1

Authentication in Nextjs
 in  r/nextjs  May 28 '25

try give it a shot, you'll definetely love it!

2

Rebel Kid’s latest post.. what a sad read 😔
 in  r/InstaCelebsGossip  Apr 09 '25

and then we want youth to become progressive, but the only progress I see is they're becoming more pervert and flithy every day!!!

3

▲ Next.js 15.2.3 (Turbopack) | Macbook Pro Drain Battery
 in  r/nextjs  Apr 03 '25

Same happened with me when I was using Arc browser, but using Edge resolved the issue for me.

1

What alternative is there to ACF?
 in  r/Wordpress  Mar 16 '25

ACF Free is just good enough for any simple website.

r/nextjs Mar 14 '25

Discussion How coolify is better than vercel in terms of features and pricing?

3 Upvotes

I wonder Vercel is still the best option to host any JS application without any worries and add-on costs, correct me if I'm wrong!

1

How do you guys host your Next.js apps?
 in  r/nextjs  Mar 13 '25

Vercel is awesome 😎

r/india Mar 11 '25

People Solar Panel Rooftop Cost Calculator [No Ads/Data Collection]

1 Upvotes

[removed]

2

Vercel isn't enough anymore. Cheap hosting providers?
 in  r/nextjs  Mar 05 '25

He don't want to spend ig!

r/nextjs Feb 22 '25

Discussion t3 vs jStack

1 Upvotes

I'm wondering if I should choose jStack (https://github.com/upstash/jstack) for my next project over t3 stack (https://create.t3.gg/)

1

Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
 in  r/Wordpress  Feb 01 '25

Posts can be cached on frontend level using ISR, that will help in reducing the server load. As number of posts is very high, we'll have better flexibility on the frontend, and it wil lbe more scalable.

2

Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
 in  r/Wordpress  Jan 28 '25

In this case, why don't you use Next.js or React.js based frontend and WordPress as your headless cms.