Muaj pes tsawg kev sib txuas Redis tuaj yeem daws tau?
Muaj pes tsawg kev sib txuas Redis tuaj yeem daws tau?

Video: Muaj pes tsawg kev sib txuas Redis tuaj yeem daws tau?

Video: Muaj pes tsawg kev sib txuas Redis tuaj yeem daws tau?
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim

Ntau tshaj cov neeg siv khoom

Hauv Redis 2.6 qhov kev txwv no yog dynamic: los ntawm lub neej ntawd nws tau teem rau 10000 cov neeg siv khoom, tshwj tsis yog tias tau hais los ntawm maxclients cov lus qhia hauv Redis. conf.

Tsis tas li ntawd, muaj pes tsawg qhov kev thov tuaj yeem daws tau Redis?

Piv txwv li, siv pipelining Redis khiav ntawm nruab nrab Linux system ua tau xa txawm 1 lab thov ib ob, yog li yog tias koj daim ntawv thov tsuas yog siv O (N) lossis O (log (N)) cov lus txib, nws yuav tsis yooj yim mus siv ib yam nkaus. ntau CPU.

Tsis tas li ntawd, Redis ua li cas tswj kev sib raug zoo? Ib qho kev pabcuam ib leeg tuaj yeem muab tau sib npaug ntawm I / O qib los ntawm kev siv I / O (de) multiplexing mechanism thiab lub voj xwm txheej (uas yog dab tsi Redis ua ). Parallelism muaj tus nqi: nrog rau ntau lub qhov (sockets) / ntau cores koj tuaj yeem nrhiav tau ntawm cov khoom siv niaj hnub no, synchronization ntawm threads yog kim heev.

Tsis tas li ntawd, Redis kev twb kev txuas yog dab tsi?

Redis yog lub networked, nyob rau hauv-nco qhov tseem ceeb-nqi khw muag khoom nrog kev xaiv durability, txhawb ntau hom kev paub daws teeb cov ntaub ntawv. Redis tuaj yeem siv los siv ntau yam server sab architectural qauv. Koj cuam tshuam nrog Redis siv a tus neeg siv khoom / server raws tu qauv.

Redis sai npaum li cas?

Redis yog data structure server. Raws li qhov tseem ceeb ntawm cov ntaub ntawv khaws cia, Redis zoo ib yam li Memcached, txawm hais tias nws muaj ob qhov zoo ntawm qhov kev xaiv ntawd: kev txhawb nqa ntawm cov ntaub ntawv ntxiv thiab kev pheej hmoo. Tag nrho cov ntaub ntawv khaws cia hauv RAM, yog li ntawd Qhov ceev ntawm qhov system no zoo kawg nkaus, feem ntau ua tau zoo dua li Memcached.

Pom zoo: