Data & Databases

Synchronize Data Between MySQL and PostgreSQL via Webhook

6 nodes 248 78 Webhook
Download

Workflow Description

Automation template that receives requests through webhook, processes data with a custom function, then writes records to MySQL and PostgreSQL in parallel to maintain data consistency across both database systems without manual intervention.

How it works

  1. 1.Receive incoming data via webhook and validate JSON format
  2. 2.Process and filter records using a JavaScript function
  3. 3.Insert validated records into MySQL database
  4. 4.Replicate the same data to PostgreSQL via HTTP request
  5. 5.Merge results from both systems to confirm sync success

Use cases

  • Keep customer lists synchronized across MySQL and PostgreSQL instances
  • Automatically replicate sales transactions from web forms to both databases
  • Maintain data consistency across multiple database servers in different locations

Requirements

  • Valid connection credentials for both MySQL and PostgreSQL servers
  • Active webhook endpoint configured to receive POST requests
  • HTTP connectivity to trigger database sync operations

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

MySQL Postgres

Details

Trigger Webhook
Nodes 6
Apps 2
Views 248
Downloads 78

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (6)

emitirEtiqueta

Webhook

#1

dadosProduto

My Sql

#2

PegarConfiguracaoImpressao

HTTP Request

#3

dadosRolo

Postgres

#4

trataRetorno

Function

#5

roloProduto

Merge

#6