Jamie's tech blog

The Blue Nowhere

[Fullstack Note] Implementing Kafka Producer batching by Javascript

Abstracting batch request implementation in Javascript

In the last article, we use Python to simplify and implement batch request. Now is Javascript time.

[Fullstack Note] Implementing Kafka Producer batching by Python

Abstracting batch request implementation in Python

Frequent requests can cause I/O performance bottlenecks; however, Kafka producers optimize by using batching. This article will abstract this batching process and implement it using Python

[Fullstack Note] Javascript request in Browser and NodeJS environment

Compare with fetch and axios in source code level.

When it come to align fetch in both frontend and backend environment, `axios` is the most frequent libray which be mentioned. However, what is the diffenence between Client/Server side fetch?

[DevOps Note] Auto-switch between multiple git accounts based on the platform

Separate work git accounts from personal git accounts

In my case, my personal Git account usually goes through Github, while the code hosting platform at work is Bitbucket and uses a separate company account for the Git account. Switching authorization manually all the time is a hassle, but mixing accounts is not great either, so I looked into a way to handle this.

[Backend Note] Using socket.io or ws in NodeJS

Simple websocket usage in NodeJS and Vue

Websocket is a network transport protocol based on TCP. In a normal GET/POST http request, after the data has been transferred, the TCP connection is closed via the four-way handshake; but in the WebSocket protocol, once the client and server complete the TCP handshake, they can maintain a long-lived connection.