#Long revalidateTag/revalidatePath roundtrip time

2 messages · Page 1 of 1 (latest)

quaint finch
#

I noticed that when using revalidateTag/revalidatePath, the round trip of a server action that normally completes in 20-30ms takes 300-500ms. Is this expected behavior?

I created a trivial example to compare round trip times that runs a server action passed from a server component down to a child with the 'use client' directive. The client component renders the server action response in 30ms, but when revalidateTag or revalidatePath are called from the server action, the response takes up to 500ms.

quaint finch
#

Also, just to add, this is only on production, deployed to vercel using the edge runtime