Software design notes — App layer

Read API

server the get requests .our focus is to make the query fast and data accurate .

usually here we put redis or memcached cluster . key difference :

redis support more data structures (hash, list, array etc);memcached is simple key-string storage

redis value size per key is 512M;memcached is 1MB

redis single threaded with IO multiplexing (build socket connection to reuse I/O channel);memcached is multi-threaded

Both of them got cluster solution

Write API

#1 simple Api (async all the way to database)

#2 Write request to queue(consider message broker)-> worker process(service)

#3 parallel processing

kafka :streaming/general partitioning purpose

big data: hadoop spark/storm

RabbitMQ/Kafka

key difference : kafka is partition framework, it’s fast;log everything (use zero copy so it is fast), support at least once and exact once,come with zookeeper ,more complex compare to rabbitmq ,should keep in mind make zookeeper as cluster also;rabbit is good for general purpose MQ, message will be done once consumed ,simple to setup .

General design

--

--

--

A Senior Software Developer/Body builder . to help others enjoy coding and stay healthy

Love podcasts or audiobooks? Learn on the go with our new app.

An interesting day

My Google Summer of Code 2020 Journey with OWASP

Create Rest API E-Wallet MVP (Spring Boot Basic — Part 1)

Helidon Integration with Vault

Dashboard in PowerBI: I — Employ a data source switch

Serverless versus Containers

ISTIO service mesh installtation

Interview with Heather Meeker: Founding Partner, OSS Capital

Cover art for The Craft of Open Source

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
LORY

LORY

A Senior Software Developer/Body builder . to help others enjoy coding and stay healthy

More from Medium

Application Framework

Payment Orchestration — BridgerPay

SAF SCOPED STORAGE — What if I am used to the “old -Fileaccess” ?

Zomato / Swiggy / Uber Eats — 10 years from now