• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Twemproxy flow
 

Twemproxy flow

on

  • 4,683 views

 

Statistics

Views

Total Views
4,683
Views on SlideShare
2,720
Embed Views
1,963

Actions

Likes
8
Downloads
34
Comments
0

7 Embeds 1,963

http://charsyam.wordpress.com 1828
https://twitter.com 69
https://charsyam.wordpress.com 32
http://www.hanrss.com 30
https://www.google.co.kr 2
https://si0.twimg.com 1
https://twimg0-a.akamaihd.net 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Twemproxy flow Twemproxy flow Presentation Transcript

    • Twemproxy Flow charsyam@naver.com
    • Twemproxy• Server Side Proxy For Memcache, Redis• Made by Twitter.• Github.com/twitter/twemproxy
    • Recv Loop(common) core_loop core_core core_recv msg_recv
    • Recv Loop(client-server)
    • Send Loop(common) core_loop core_core core_send msg_send
    • Send Loop(client-server)
    • Message• Using Memory Pool• Using mbuf
    • Message-req_get req_get rsp_get msg_get _msg_get Processing …… req_put rsp_put
    • mbuf• Using chained buffer• Using sendv, writev
    • mbufstruct iovec array[] array[0].iov_base Mbuf->pos array[0].iov_len mlen array[n].iov_base Mbuf->pos array[n].iov_len mlen
    • mbuf
    • Why is Twemproxy Fast?• Using mbuf and avoiding buffer copy. – Just forward packet.
    • Thank you