Crisp๋ Cloudflare์ ๋ถํ ๋ถ์ฐ์ ์ฌ์ฉํ์ฌ ๊ณ ๊ฐ ๊ด๊ณ ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ธ๋ก๋ฒ ์ฑ๋ฅ์ ๊ฐ์ ํฉ๋๋ค.
Crisp is a SaaS based customer relationship application, providing customers with features such as a chat box, email replies, and an operator dashboard to quickly reply to customer queries. Crisp targets the unpenetrated markets of Eastern Europe, Asia, and the Middle East, where a customer relationship solution doesnโt exist or customers are in need of replacing outdated and expensive legacy technology.
Crispโs Challenge: Ensure Global Performance While Maintaining Local Infrastructure
Crisp๋ ํ์ฅ ๊ณผ์ ์์ ๊ณ ๊ฐ์๊ฒ ๊ณ์ํ์ฌ ๊ณ ์ฑ๋ฅ ํ๋ซํผ์ ์ ๊ณตํ๋ฉด์ ์ ๋ฝ ๊ธฐ๋ฐ ์ธํ๋ผ๋ฅผ ์ ์งํ์ฌ ์ถ๊ฐ ์ค๋ฒํค๋๋ฅผ ์ต์ํํ๋ ค ํ์ต๋๋ค. Crisp์ CTO Valรฉrian Saliou๋ ์ค๋ช ํ์ต๋๋ค. โ์ฑํ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋์ ์ฝํ ์ธ ๊ฐ ์ฌ์ฉ์์ ์ ๋ฝ์ ์๋ฒ ์ฌ์ด๋ฅผ ์ค๊ฐ๊ธฐ ๋๋ฌธ์, ์ฒ์์ ์์์์ ๋๊ธฐ ์๊ฐ์ ๋ง์ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค. ์ฒซ๋ ๋ถํฐ Cloudflare์ CDN์ ์ฌ์ฉํ์ต๋๋ค. ๋ช ์ด ๋ง์ ์ ์ ์์ฐ ์ ๊ณต์ ๊ฐ์ ํ๋ ๋ฐ ์ฆ์ ๋์์ด ๋์์ต๋๋ค. ํ์ง๋ง ์ ๋ฝ ์ธํ๋ผ๋ฅผ ์ ์งํ ์ ์๋ ์๋ฃจ์ ์ ํตํด ๋์ ์ฝ๏ฟฝ๏ฟฝ๏ฟฝ์ธ ์ ๊ณต์ ์ต์ ํํ๋ ๋ฐฉ๋ฒ์ด ์ฌ์ ํ ํ์ํ์ต๋๋ค.โ
Crispโs Solution: A Cloud-Based, Global Load Balancer
When Crisp saw Cloudflareโs Load Balancing Early Access offering, they opted into the program to see if they could leverage it to help with the latency they were seeing with dynamic content. Cloudflareโs Global Load Balancing routes Crispโs customers to the origin server closest to them, which not only shortens the distance content needs to travel, but also allows for cryptographic termination closer to the end userโensuring minimal latency for the end user. The results were better than Crisp couldโve hopedโ โWhen we rolled out Cloudflare Load Balancing,โ Saliou explained โto route traffic across our atlas of websocket servers (tunneled into our core infrastructure through a VPN), we immediately got messages from customers in Asia and Oceania thanking us for the improvement.โ With Load Balancing, Crisp saw latency times of their dynamic content drop an additional 2-3 seconds . Plus, with Health Checks and Failover built into Cloudflare Load Balancing, Crispโs customers enjoy continual unfettered performance through Crispโs ability to monitor the health of their websocket servers and automatically shift traffic to healthy servers when a server is experiencing poor performance.
Crisp๋ API๋ฅผ ๊ณต๊ฐ ๋ฐฐํฌํ ๋๋ Cloudflare์ Page Rules ๋ฐ DDoS ๋ฐฉ์ด ํจ๊ณผ๋ฅผ ๋๋ ธ์ต๋๋ค. Saliou๋ โCache Everything์ผ๋ก ๊ธฐ๋ณธ ์ค์ ํ์ฌ ๋์ญํญ์ ์ค์ธ ํ Page Rules๋ฅผ ์ฌ์ฉํ์ฌ API์ ๋ํ ์์ธ์ ํน์ ์๋น์ค์ ๋ํด ๋ค์ํ TTL์ ์ง์ ํ์ต๋๋คโ๋ผ๊ณ ์ค๋ช ํ์ต๋๋ค. ๋๋ถ์ด Crisp๋ Cloudflare์ DDoS ๋ฐฉ์ด๋ก API๋ ๋ณดํธํ๊ณ ์์ต๋๋ค. Saliou๋ โํ์ฌ๊น์ง I'm Under Attack ๋ชจ๋๋ก, API๋ฅผ ์ฐจ๋จํ๋ ค๋ ๋ ๋ฒ์ ๊ณต๊ฒฉ์ ์ฐจ๋จํ๊ณ ์ ํ ์๋น์ค ์ฅ์ ๊ฐ ์์์ต๋๋คโ๋ผ๊ณ ๋งํ์ต๋๋ค.
Saliou๋ โ์์ฌ ๊ฒฐ์ ์ ์ค์ํ ์์์ธ ๋น์ฉ์ ๊ณ ๋ คํ์ง ์์์ง๋ง Cloudflare๋ ์๋น์ค, ์จ๋ณด๋ฉ, ์ฌ์ฉ ํธ๋ฆฌ์ฑ ๋ฉด์์ ๊ฒฝ์์ฌ๋ฅผ ์ฌ์ ํ ์์ง๋ฅด๊ณ ์์ต๋๋คโ๋ผ๊ณ ๊ฒฐ๋ก ์ง์์ต๋๋ค.
Global Load Balancing๋ ๊ตญ์ ๊ณ ๊ฐ์ ๋๊ธฐ ์๊ฐ์ 2~3์ด ๋จ์ถํจ
I'm Under Attack ๋ชจ๋๋ ์ด๋ ํ ์๋น์ค๋ ์ค๋จํ์ง ์๊ณ DDoS ๊ณต๊ฒฉ์ ์ํํจ
๋ก์ปฌ ์ธํ๋ผ๋ฅผ ์ ์งํ๋ฉด์๋ ํฉ๋ฆฌ์ ์ธ ๋น์ฉ์ผ๋ก ์ ์ธ๊ณ์ ์ผ๋ก ํ์ฅํจ
โCloudflare๋ก Crisp์ ์๋น์ค ํ์ง์ ๊ทน๋ํํ๊ณ ์๋น์ค ์๋ต ์๊ฐ์ ์ต์ํํ์ต๋๋ค. ๋๋ถ์ ๊ณ ๊ฐ์ ๋คํธ์ํฌ ์ธํ๋ผ๊ฐ ๋์ค๋ค์๊ฒ ์์ฉํ๋์์ต๋๋ค. ์ด์ Cloudflare ์๋ ๋น์ฆ๋์ค๋ ์์๋ ํ ์ ์์ต๋๋ค.โ
Valรฉrian Saliou
CTO
์์