The text compares the performance of two protocols, SQL-over-HTTP and WebSockets, for executing Postgres queries in Edge and Serverless environments. The author's driver initially supported only WebSockets but recently introduced SQL-over-HTTP to compare their performance. The results show that while WebSockets are faster after establishing a connection, they are slower for single-shot queries compared to SQL-over-HTTP. However, when using HTTP with connection caching, latencies can be reduced further. The choice of protocol depends on the query type and region, as well as the Edge network's size and proximity to users.