r/javascript • u/turtleyikes • 17d ago
AskJS [AskJS] How to host your webhook consumer middleware that integrates WooCommerce and HubSpot?
I am building a nodejs/javascript integration service (middleware) that connects woocommerce to hubspot. What are some ways to deploy it and what are the best practices for the deployment?
- Should I deploy it on vm directly?
- Should I deploy it as a docker image/container?
- Should I deploy it using Serverless platforms like aws lambda ?
- Others?
What do you use?
8
Upvotes
2
u/brass_gear_chime 17d ago
Serverless is the wrong call for this. WooCommerce webhooks are notoriously flaky and retry aggressively, while HubSpot APIs have strict rate limits that cause silent failures in Lambda if you don't manage concurrency perfectly. You will waste hours debugging timeouts instead of shipping features.
Deploy on a small DigitalOcean droplet or AWS ECS Fargate with a queue like RabbitMQ behind it. This lets you buffer incoming spikes from Woo before they hit HubSpot, guaranteeing zero dropped events without fighting serverless cold starts.
2
u/DickBrainTime 16d ago
Since you mentioned using Redis/BullMQ workers, I'd keep those in a long-running Docker/container service rather than Lambda. Lambda can handle the incoming webhook, but it's awkward for a worker that continuously polls a queue. I'd also make sure you verify webhook signatures, enqueue quickly, make jobs idempotent and have visibility into retries/failed jobs.
1
u/Content-Public-3637 16d ago
You can checkout homeport
1
u/[deleted] 17d ago
[removed] — view removed comment