Recommendation for business logic - using supabase

I’m using n8n for this purpose, running both a lot of automation as well as api for the weweb frontend.
While it is great it still comes in as a good bit slower than running close to db functions in postgres/supabase.

I found a certain completely no-code workflow in n8n was 1/10 the speed of the same function running as a postgres function. I was able to get it down to 300 ms (compared to 100-150 ms on postgres) by using the code nodes in n8n, instead of if/switch and other dedicated nodes - and then it’s not really no code any more.

Running n8n as close to db as possible is important, and queue mode is also a must to keep a free non-blocking environment for frontend api calls. I run main+webhook node and 4 workers now.

Pro’s for n8n

  • easy to maintain
  • finding faults is easy
  • fast building

Cons

  • speed
  • workflows sometimes break when updating
  • scaling is more complex
1 Like

Yeah, I’d say with the current state of the AI , you can learn a lot while needing very few to get started so I feel like n8n’s cons are just too painful. A coded Edge Function is the way. You can even make one function into multiple endpoints by using something like Oak for routes. So you are not limited by the amount of Edge Functions. E.g you can have an /auth function that has /login, /signup, /special-signup etc. All in one Edge Function, which is very convenient.

Interesting to have your feedback, and tests.
1/10th of the edge function is a big loss in performance, compared to the edge function.

Any idea if it’s related to n8n, the instance you’re on, or something else ?

I wonder if the same performance loss would happen in the same proportion for other no-code backends like fastgen or buidlship ?

Nocode is slower than yescode by nature. You can throw more computing power at it. But latency also matters. Too many variables.

I’m not saying you’re wrong, I’m just asking for optimum visual development options for low latency, and still offering the flexibilty of visual development.

Node Red is a good Nocode/Low Code visual builder, it seems to perform a lot faster than n8n.

it looks like windows 98… but maybe that’s hidding a high performance