Toxiproxy, chimiro chekutevedzera mamiriro etiweki munzvimbo dzekuyedza

Shopify, iyo inovandudza imwe yemapuratifomu makuru uye anozivikanwa e-commerce pawebhu, dio nguva pfupi yadarika yakazivisa kuti yakatangisa vhezheni itsva yeproxy server «Toxiproxy 2.3» iyo yakagadzirirwa kutevedzera kutadza uye anomalies munetiweki uye sisitimu yekuyedza mamiriro ezvikumbiro kana mamiriro akadai aitika.

Chirongwa ichi chinomira pachena nekupa API yekuchinja zvine simba maitiro eiyo nzira yekutaurirana, iyo inogona kushandiswa kubatanidza Toxiproxy nemayuniti ebvunzo masisitimu, mukuwedzera kune zvakare kuve nerutsigiro rwekuenderera mberi kwekubatanidza mapuratifomu uye nharaunda dzekusimudzira.

Pamusoro peToxiproxy

Iyi furemu yakanyatsogadzirirwa kushanda munzvimbo dzekuyedza, CI uye kusimudzira, uye inotsigira deterministic manipulation ekubatanidza, asi nerutsigiro rwekusagadzikana mhirizhonga uye kugadzirisa.

Kunyanya, Toxiproxy yakaiswa sechombo kuti vose vanoda ita bvunzo dzedemo pane maapplication asina kana mapoinzi ekukundikana. Toxiproxy yakashandiswa zvinobudirira mukusimudzira uye kuyedza nharaunda paShopify kubvira Gumiguru 2014.

Kushandiswa kwetoxiproxy kunosanganisira zvikamu zviviri. Mumiriri weTCP akanyorwa muGo (zvirimo mune ino repository) uye mutengi anotaurirana nemumiriri kuburikidza neHTTP. Izvi zvinogadzirisa iyo application kuitira kuti yese yekubatanidza bvunzo iende kuburikidza neToxiproxy uyezve inogona kushandura chimiro chavo kuburikidza neHTTP.

Mune mamwe mazwi, proxy inotangwa pakati pechikumbiro chiri kuedzwa uye netiweki sevhisi iyo iyi application inodyidzana nayo, mushure mezvo iwe unogona kutevedzera kuitika kwekumwe kunonoka kana uchigamuchira mhinduro kubva kune sevha kana kutumira chikumbiro, shandura bandwidth, kutevedzera kuramba kubvuma kubatanidzwa, kukanganisa yakajairika nzira yekumisikidzwa kana kuvharwa kwezvibatanidza, gadzirazve hukama hwakasimba, kukanganisa. zviri mukati memapakiti.

Kuti udzore kushanda kweiyo proxy server kubva kune zvikumbiro, maraibhurari evatengi eRuby, Go, Python, C # /. kudyidzana mamiriro network panhunzi uye pakarepo ongorora mhedzisiro.

Kuti uchinje maitiro eiyo nzira yekutaurirana pasina kuita shanduko kune kodhi, yakakosha toxiproxy-cli utility inogona kushandiswa (iyo Toxiproxy API inofanirwa kushandiswa muyuniti bvunzo uye utility inogona kubatsira kune inopindirana kuyedza).

Chii chitsva muToxiproxy 2.3?

Kana dziri shanduko dzakasanganisirwa mushanduro itsva yakaburitswa, zvinonzi pane kusanganisirwa kwemutengi endpoint controller yeHTTPS.

Zvakare nekuparadzaniswa kweakajairika madhiraivha ebvunzo mumafaira akaparadzana, kuiswa kwemutengi.Populate API.

Pamusoro peizvi, zvakare inomira pachena rutsigiro rwearv7 uye armv6 mapuratifomu uye kugona kushandura nhanho yekunyoreswa kweseva.

Isa Toxiproxy paLinux

Kune avo vanofarira kukwanisa kuisa chimiro ichi kuti vakwanise kuita bvunzo dzavo, vanogona kuita izvi tichitevera matanho atinogovera pazasi.

Kana iwe uri mushandisi we Debian, Ubuntu kana chero kumwe kugovera kunoenderana neizvi, Iwe unogona kuita yekumisikidza nekuvhura terminal (unogona kushandisa iyo keyboard yekudimbudzira Ctrl + Alt + T) uye mairi uchanyora:
wget https://github.com/Shopify/toxiproxy/releases/download/v2.3.0/toxiproxy_2.3.0_linux_amd64.deb

Uye isu tinoenderera mberi nekuita kumisikidza ne:
sudo apt install ./toxiproxy_2.3.0_linux_amd64.deb

Panyaya yeavo vari vashandisi vekugovera nerutsigiro rweRPM mapakeji, senge Fedora, openSuse, RHEL, pakati pevamwe, pasuru yekurodha ndeiyi inotevera:
wget https://github.com/Shopify/toxiproxy/releases/download/v2.3.0/toxiproxy_2.3.0_linux_amd64.rpm

Uye iwe unoisa iyo package nekunyora:
sudo rpm -i toxiproxy_2.3.0_linux_amd64.rpm

Kana kuiswa kwaitwa, unogona kutanga sevhisi nekuita unotevera kuraira mune terminal:
sudo service toxiproxy start

Pakupedzisira kana eIwe unofarira kukwanisa kuziva zvakawanda nezvazvo, Iwe unofanirwa kuziva kuti iyo Toxiproxy kodhi yakanyorwa muGo uye ine MIT rezinesi uye unogona kubvunza bhuku rekushandisa iyi chimiro mu. inotevera chinongedzo.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako