ĬÈÏ
´òÉÍ ·¢±íÆÀÂÛ 0
Ï뿪·¢IM£ºÂò³ÉÆ·Å¿ӣ¿×âµÚ3·½Å¹ó£¿ÕÒ¿ªÔ´×ÔÒÑߣ£¿¾¡Á¿±ð×ßÍä·ÁË... ÕÒÕ¾³¤¸øµã½¨Òé
תתƽ̨IMϵͳ¼Ü¹¹Éè¼ÆÓëʵ¼ù(Ò»)£ºÕûÌå¼Ü¹¹Éè¼Æ
΢ÐÅɨһɨ¹Ø×¢£¡

±¾ÎÄÓÉתתÍõ×ØÉú·ÖÏí£¬Ô­Ìâ¡°IMϵÁÐ(Ò»)£º×ª×ªIMϵͳ¼Ü¹¹Ì½ÃØ¡±£¬¼´Ê±Í¨Ñ¶Íø½øÐÐÁËÅÅ°æºÍÄÚÈÝÓÅ»¯¡£


1¡¢ÒýÑÔ


תתÊǶþÊÖµçÉÌƽ̨£¬ÔÚÕâ¸öƽ̨ÉÏ£¬ÈËÈË¿ÉÒÔÊÇÂò¼Ò£¬ÈËÈËÒ²¿ÉÒÔÊÇÂô¼Ò¡£×ª×ª´Ó×î³õµÄÐÅϢģʽÉý¼¶ÎªÒ»¸ö±Õ»·µÄ½»Ò×ģʽ£¬IM´òͨÁËÂò¼ÒÓëÂô¼ÒÖ®¼äµÄͨµÀ¡£±¾ÎÄÃèÊöÁËתתIMΪÕû¸öƽ̨ÌṩµÄÖ§³ÅÄÜÁ¦£¬¸ø³öÁËϵͳµÄÕûÌå¼Ü¹¹Éè¼Æ£¬·ÖÎöÁËϵͳ¼Ü¹¹µÄÌØÐÔ¡£

תתƽ̨IMϵͳ¼Ü¹¹Éè¼ÆÓëʵ¼ù(Ò»)£ºÕûÌå¼Ü¹¹Éè¼Æ_cover-opti.png

2¡¢ÏµÁÐÎÄÕÂ


±¾ÎÄÊÇϵÁÐÎÄÕÂÖеĵÚ1ƪ£¬±¾ÏµÁÐÎÄÕµĴó¸ÙÈçÏ£º


3¡¢±¾ÎÄ×÷Õß


Íõ×ØÉú£º×ª×ª¼Ü¹¹Æ½Ì¨²¿¸ß¼¶Ñз¢¹¤³Ìʦ£¬¸ºÔðIMϵͳ¡¢ÍÆËÍϵͳºÍ·Ö²¼Ê½´æ´¢ÏµÍ³¡£

4¡¢ÏµÍ³ÄÜÁ¦¶¨Òå


תתIMÐèÒªÌṩÈçϵÄÖ§³ÅÄÜÁ¦£º

1£©ÓеÄÓû§Ï°¹ßʹÓÃAPP¡¢ÓеÄÓû§Ï°¹ßÃâ°²×°µÄС³ÌÐò£»»¹ÓеÄÓû§Ï°¹ßÓÚÔÚ¡°58ͬ³Ç¡±APPÉÏËÑË÷¶þÊÖ£»ËùÒÔIMÐèÒªÖ§³ÖAPP¡¢Ð¡³ÌÐò¡¢M¶ËµÈ¸÷ÖÖÖÕ¶ËÀàÐÍ£¬ÒÔ¼°ÓÉתתƽ̨ÑÜÉú³öµÄÆäËû´¹ÀàAPP¡£

2£©IMÊÇתתƽ̨ÖеÄÒ»¸ö¶ÀÁ¢ÏµÍ³£¬ÐèÒªÏòƽ̨ÖеÄÆäËûϵͳ£¨Èç¿Í·þϵͳ¡¢·ç¿Øϵͳ£©Ìṩ¡°ÁªÏµÈË¡±ºÍ¡°Ë½ÐÅ¡±µÈIMÄÜÁ¦¡£

3£©ÔÚתתƽ̨µÄ¸÷ÖÖÔËÓª»î¶¯ÖУ¬ÐèÒª½èÖúÓÚIMͨµÀ½«ÉÌÆ·ÏûÏ¢¡¢¶©µ¥ÏûÏ¢¡¢½»Ò×ÏûÏ¢¼°»î¶¯Í¨ÖªµÈʵʱµÄ·¢Ë͸øÓû§¡£

×ÜÖ®£ºIMΪתתƽ̨Ìṩһ¸ö¿É¿¿ºÍÎȶ¨µÄͨµÀ£¬ÎªÓû§ÓëÓû§Ö®¼ä¡¢ÒµÎñϵͳÓëÓû§Ö®¼ä¡¢Æ½Ì¨ÓëÓû§Ö®¼ä´òÔìÒ»¸ö¿ÉÒÔ¼´Ê±Í¨Ñ¶µÄ»·¾³¡£

5¡¢ÏµÍ³¼Ü¹¹¸ÅÀÀ


תתIMϵͳ¼Ü¹¹Éè¼ÆÈçÏÂͼËùʾ£¬×ÔÉ϶øÏ°üÀ¨ËIJ㣺Óû§²ã¡¢Èë¿Ú²ã¡¢Âß¼­²ãºÍÔ­×Ó´æ´¢²ã¡£

תתIMϵͳ¼Ü¹¹Éè¼Æͼ£º
תתƽ̨IMϵͳ¼Ü¹¹Éè¼ÆÓëʵ¼ù(Ò»)£ºÕûÌå¼Ü¹¹Éè¼Æ_1.png

6¡¢ÏµÍ³¼Ü¹¹Ö®¡°Óû§²ã¡±


Óû§²ãÊÇIM·þÎñµÄµ÷ÓÃÕߣ¬Óû§²ãÖ§³Å¸÷ÀàÒµÎñÓ¦Ó㬰üÀ¨APP¡¢Ð¡³ÌÐò¡¢M¶Ë¡¢Æ½Ì¨ÔËÓªÀàÒµÎñϵͳºÍZZRPC¡£

APP»ùÓÚTCPЭÒéÓëIM·þÎñ¶Ë½øÐÐÏûÏ¢´«Ê䣬С³ÌÐòºÍM¶ËÔòÊÇͨ¹ýHTTPЭÒé¡£

ZZRPCÊÇתתƽ̨ʹÓÃJavaÓïÑÔ×ÔÑеÄRPC¿ò¼Ü£¬¶øתתIMϵͳÊÇʹÓÃC++ÓïÑÔ½øÐÐÑз¢µÄ£¬ËùÒÔIMÐèҪͨ¹ýÊÊÅäÖ§³ÖZZRPC·þÎñµÄÏ໥µ÷Óá£

7¡¢ÏµÍ³¼Ü¹¹Ö®¡°Èë¿Ú²ã¡±


Èë¿Ú²ãÊÇIMϵͳµÄÈë¿ÚÍø¹Ø£¬°üÀ¨£º

  • 1£©Entry
  • 2£©Http-Entry
  • 3£©×ª×ª×ÔÑеķֲ¼Ê½ÏûÏ¢Öмä¼þZZMQ£»
  • 4£©IMUI¡£

Entry£º¸ºÔðά»¤ÓëAPPÖ®¼äµÄTCPÁ¬½Ó£¬°ÑAPP·¢Ë͵ÄÒµÎñÇëÇó°üÏòºóÖ±½Óת·¢µ½Âß¼­²ã½øÐд¦Àí¡£EntryÂß¼­½ÏΪ¼òµ¥£¬²»²ÎÓë¾ßÌåµÄÒµÎñ´¦Àí£¬ÕâÑùÉè¼ÆµÄÔ­ÒòÊÇΪÁ˱ÜÃâEntryÒòÒµÎñ¸ÄÔìÉý¼¶½øÐÐÄ£¿éÖØÆô£¬¶ø¶ªÊ§ÓëAPPÖ®¼äµÄTCPÁ¬½Ó£¬Ó°Ïì´óÁ¿Óû§¡£

Http-Entry£ºÊÇHTTP°æµÄEntryʵÏÖ£¬Http-Entry¸ºÔðά»¤µÄÊÇÓëС³ÌÐòºÍM¶ËÖ®¼äͨ¹ýHTTPЭÒéÄ£ÄâµÄ¡°³¤Á¬½Ó¡±¡£

HTTP¡°³¤Á¬½Ó¡±µÄʵÏÖÔ­ÀíÊÇ£ºÐ¡³ÌÐò·¢ËÍhttp_requestµ½Http-Entry£¬Http-Entry»áholdסÁ¬½Ó²»·µ»Ø¡¢²»ÊÍ·Å£»µ±²úÉúÁ˸ÃÓû§µÄ˽ÐÅÊý¾Ýʱ»òholdסÁ¬½Ó³¬¹ýÒ»¶¨Ê±¼ä£¨Èç15Ã룩ʱ£¬Http-EntryÔò·µ»Øhttp_responseµ½Ð¡³ÌÐò£»Ð¡³ÌÐòÊÕµ½http_responseʱÐèÒªÁ¢¼´Ôٴη¢ËÍhttp_requestµ½Http-Entry......¡£


ZZMQ£ºÊÇתת×ÔÑеķֲ¼Ê½ÏûÏ¢¶ÓÁУ¬½ÓÊÕƽ̨¸÷¸öÔËÓªÀàÒµÎñϵͳÉú²úµÄϵͳÏûÏ¢¡¢¹ã²¥ÏûÏ¢ºÍÍÆËÍÀàÏûÏ¢£¬È»ºóÓÉIMÂß¼­Ä£¿é½øÐÐÏû·Ñ´¦Àí¡£ZZMQ½âñîÁËƽ̨ҵÎñϵͳºÍIMϵͳ¡£

IMUI£ºÓÃÓÚIMϵͳÊÊÅäZZRPCµÄµ÷Óã»IMUI×÷ΪZZRPC·þÎñµÄÌṩÕߣ¬½ÓÊÕZZRPC¿Í»§¶ËµÄÇëÇóºó£¬°´ÕÕIMϵͳµÄÄÚ²¿Ð­Òé¸ñʽͬ²½·ÃÎÊÂß¼­²ã£¬ÔÙ½«Âß¼­²ãµÄ²Ù×÷½á¹û°´ZZRPCЭÒé½øÐзâ×°£¬È»ºó·µ»Øµ½ZZRPCµÄ¿Í»§¶Ë¡£

8¡¢ÏµÍ³¼Ü¹¹Ö®¡°Âß¼­²ã¡±


Âß¼­²ã°üÀ¨LogicºÍExtlogicÁ½¸öÄ£¿é×é¼þ£º

  • 1£©Logic¸ºÔðʵÏÖIMϵͳºËÐĵĺÍÇáÁ¿¼¶µÄÒµÎñÂß¼­£¬ÈçÓû§µÇ¼¡¢»ñȡδ¶ÁÊý¡¢·¢ËÍ˽Ðŵȣ»
  • 2£©·ÇºËÐĵĺÍÖØÁ¿¼¶µÄÒµÎñÓÉExtlogic½øÐÐʵÏÖ£»
  • 3£©LogicºÍExtlogicÁ½¸öÂß¼­Ä£¿éͨ¹ýZZMQ½øÐнâñî¡£

ÀýÈ磺ÔÚ˽ÐÅÂß¼­´¦ÀíÁ÷³ÌÖУ¬Logic½ÓÊÕ˽ÐźÍÓû§ÔÚÏßʱµÄ˽ÐÅÍÆËÍ£¬¶ø¶ÔÓÚÀëÏß˽ÐÅLogicÔò»áͨ¹ýZZMQ֪ͨExtlogic½øÐÐÀëÏßÏûÏ¢µÄÕÙ»ØÂß¼­´¦Àí¡£

9¡¢ÏµÍ³¼Ü¹¹Ö®¡°Ô­×Ó´æ´¢²ã¡±


IMÐèÒª³Ö¾Ã»¯´æ´¢µÄÊý¾Ý°üÀ¨Ë½ÐÅÏûÏ¢¡¢ÏµÍ³ÏûÏ¢ºÍÁªÏµÈ˵ȡ£

ÕâЩÊý¾Ýͨ¹ý´«Í³µÄ¹ØϵÐÍÊý¾Ý¿âMySQLºÍNewSQLÊý¾Ý¿âTiDB½øÐб£´æ£º

  • 1£©TiDBÊÇ·Ö²¼Ê½Êý¾Ý¿â£¬¾ßÓÐÌìÈ»µÄµ¯ÐÔÀ©ÈÝÌØÐÔ£»
  • 2£©MySQLͨ¹ýͨÓõķֿâ·Ö±í²ßÂÔÀ´Ó¦¶Ô´æ´¢ºÍ²éѯ¸ºÔØ¡£

Das½ÓÊÕÂß¼­²ã¶Ô³Ö¾Ã»¯Êý¾ÝµÄ¶ÁдÇëÇ󣬽«ÇëÇó·ÅÈë±¾µØ¶ÓÁÐÖУ¬È»ºó°´Ë³Ðò¶ÔÊý¾Ý¿â½øÐÐͬ²½¶Áд²Ù×÷¡£

ZZRedisÊÇתת×ÔÑеķֲ¼Ê½»º´æϵͳ£¬¸ºÔð¶ÔÓû§µÄÔÚÏßÐÅÏ¢½øÐлº´æ¡£

JtransitÓëIMUIÀàËÆ£¬ÓÃÓÚÊÊÅäZZRPC·þÎñ£»Jtransit×÷ΪZZRPC·þÎñµÄµ÷Ó㬽ÓÊÕÂß¼­²ãµÄÇëÇóºó£¬°´ÕÕZZRPCЭÒé¸ñʽ·ÃÎÊƽ̨ÆäËûϵͳÌṩµÄ·þÎñ£¬»ñÈ¡Êý¾Ýºó·â×°³ÉIMϵͳµÄЭÒéÊý¾Ý·µ»Øµ½Âß¼­²ã¡£

10¡¢¼Ü¹¹ÌØÐÔ1£ºÉìËõÐÔ


¶ÔתתIMϵͳ¼Ü¹¹Éè¼Æ£¬´ÓÉìËõÐÔ¡¢¸ß¿ÉÓᢿɿ¿ÐÔ¡¢¿ÉÀ©Õ¹ÐԺ͸ßÐÔÄÜ·Ö±ð½øÐзÖÎö¡£

µ±×ª×ª²¢·¢·ÃÎʵÄÓû§Á¿²»¶ÏÔö¼Ó£¬IMϵͳ×ÊÔ´½ôÕÅʱ£¬ÐèҪͨ¹ýÔö¼Ó»úÆ÷½øÐÐˮƽµ¯ÐÔÀ©ÈÝ£¬Ö÷ÒªÊÇͨ¹ý·þÎñ¹ÜÀíƽ̨¿ØÖÆÖÐÐĽøÐÐʵʩµÄ¡£Èë¿Ú²ã¡¢Âß¼­²ãºÍÔ­×Ó²ã·þÎñÖ®¼äÏ໥µ÷ÓõĹØϵÈçϱíËùʾ¡£

תתƽ̨IMϵͳ¼Ü¹¹Éè¼ÆÓëʵ¼ù(Ò»)£ºÕûÌå¼Ü¹¹Éè¼Æ_2.png

EntryºÍHttp-Entry»á×÷Ϊµ÷Ó÷½µ÷ÓÃLogicµÄ·þÎñ£¬LogicºÍExtlogic»á×÷Ϊµ÷Ó÷½µ÷ÓÃDasµÄ·þÎñºÍEntryÓëHttp-EntryµÄ·þÎñ£¬ÕâЩ·þÎñÖ®¼äµÄ¹Øϵͨ¹ý¿ØÖÆÖÐÐĽøÐйÜÀí¡£

Ê×ÏÈ£º

  • 1£©·þÎñ·½×é¼þÓë¿ØÖÆÖÐÐĽ¨Á¢TCP³¤Á¬½Ó£¬½«·þÎñÄÚÈÝ°üÀ¨±¾ÊµÀýip¡¢¶Ë¿Ú¡¢·þÎñ½Ó¿ÚµÈµÈ×¢²áµ½¿ØÖÆÖÐÐÄ£»
  • 2£©µ÷Ó÷½×é¼þÓë¿ØÖÆÖÐÐĽ¨Á¢TCP³¤Á¬½Ó£¬´Ó¿ØÖÆÖÐÐÄÂÖѯ·þÎñÁÐ±í£»
  • 3£©·þÎñ·½×é¼þÔö¼Ó»úÆ÷µ¯ÐÔÀ©ÈÝʱ£¬ÐµÄʵÀý»á×¢²áµ½¿ØÖÆÖÐÐÄ£¬½ø¶ø±»µ÷Ó÷½ÊµÊ±À­È¡µ½¡£

ÁíÍ⣺

  • 1£©Appͨ¹ýÓòÃûÁ¬½ÓEntryʱ»áÊ×ÏÈ·ÃÎÊTGW£¬ÓÉTGWת·¢ÇëÇóµ½Entry£¬ËùÒÔÔö¼ÓEntryʵÀýʱÐèÒªÔÚTGW½øÐÐ×¢²á£»
  • 2£©Ð¡³ÌÐòµ½Http-EntryµÄHTTPÇëÇó¶¼ÊÇÓÉNginx½øÐÐÖÐת£¬ËùÒÔÔö¼ÓHttp-Entry»úÆ÷ÐèÒªÔÚNginxÉϽøÐÐÅäÖã»
  • 3£©Extlogic×÷ΪZZMQµÄÏû·ÑÕߣ¬¿ÉÒÔ×ÔÓÉÔö¼ÓʵÀý¡£

´æ´¢²ãÀ©ÈÝ£º

  • 1£©Êý¾Ý¿âMySQLͨ¹ý·Ö¿âºÍ·Ö±íµÄ·½Ê½½øÐÐÀ©ÈÝ£»
  • 2£©·Ö²¼Ê½Êý¾Ý¿âTiDBÒÔ¼°·Ö²¼Ê½»º´æZZRedis£»
  • 3£©»¹Óзֲ¼Ê½ÏûÏ¢¶ÓÁÐZZMQ×ÔÉí¾ßÓÐÌìÈ»µÄµ¯ÐÔÉìËõÌØÐÔ¡£

11¡¢¼Ü¹¹ÌØÐÔ2£º¸ß¿ÉÓÃ


1£©Èë¿Ú²ã¸ß¿ÉÓãºÈë¿Ú²ãEntryºÍHttp-EntryµÄ¿ÉÓÃÐÔ·Ö±ðÓÉTGWºÍNginx½øÐÐ̽»îºÍǨÒÆ¡£

2£©Logic¸ß¿ÉÓãºLogicµÄ¿ÉÓÃÐÔÓÉÈë¿Ú²ãʵÀý½øÐпØÖÆ£»ÎªÁ˱£Ö¤Í¬Ò»Óû§ÏûÏ¢µÄ˳ÐòÐÔ£¬EntryºÍHttp-Entry»á½«Í¬Ò»¸öÓû§µÄÇëÇóͨ¹ý¹þÏ£Ëã·¨´òµ½ÏàͬµÄLogicʵÀý£»ÈôÒ»Ë÷ÒýºÅΪxµÄLogicʵÀý¹ÒµôÒÔºó£¬EntryºÍHttp-Entry»áÔÚÖØÊÔºó½«ÇëÇó´òµ½Ë÷ÒýºÅΪ(x+p)%nµÄLogicʵÀýÉÏ£¨nΪLogicʵÀýÊýÄ¿£¬pµÄÈ¡ÖµÇø¼äΪ[1,n) £©£»×¢ÒâpµÄÈ¡Öµ²»Ä̶ܹ¨£¬·ñÔòºÜÈÝÒ×½«Ë²Ê±Á÷Á¿´òµ½¹Ì¶¨µÄLogicʵÀý£¬ÒýÆðÑ©±ÀЧӦ¡£

3£©Extlogic¸ß¿ÉÓãºExtlogic¸ºÔðÏû·ÑÏûÏ¢¶ÓÁÐZZMQÖеÄÏûÏ¢£¬¹ÒµôÈÎÒâÒ»¸öʵÀýºó£¬²»Ó°ÏìÒµÎñµÄÕý³£´¦Àí¡£

4£©Das¸ß¿ÉÓãºDasµÄ¸ß¿ÉÓÃÓÉLogicºÍExtlogic½øÐпØÖÆ£¬Ô­ÀíÓëLogic¸ß¿ÉÓÃÒ»Ö£¬ÔÚ¹ÒµôÈÎÒâÒ»¸öDasʵÀýºó£¬LogicºÍExtlogic»á½«ÇëÇó´òµ½Ë÷ÒýºÅΪ(x+p)%nµÄDasʵÀýÉÏ¡£

5£©´æ´¢²ã¸ß¿ÉÓãºMySQLͨ¹ýÒ»Ö÷Á½±¸Ä£Ê½±£Ö¤Æä¸ß¿ÉÓã¬ÔÚÖ÷¿â¹ÒµôÒÔºó£¬ÆäÖеÄÒ»¸ö±¸¿â±äΪÖ÷¿â¼ÌÐø¶ÔDasÌṩ·þÎñ£»·Ö²¼Ê½Êý¾Ý¿âTiDB¡¢·Ö²¼Ê½»º´æZZRedis£¬·Ö²¼Ê½ÏûÏ¢¶ÓÁÐZZMQ×ÔÉí¾ßÓÐÌìÈ»µÄ¸ß¿ÉÓÃÌØÐÔ¡£

12¡¢¼Ü¹¹ÌØÐÔ3£º¿É¿¿ÐÔ


³ÌÐòµÄÕýÈ·´¦Àí±£Ö¤ÏµÍ³µÄ¿É¿¿ÐÔ£¬Ó°ÏìIMϵͳ¿É¿¿ÐÔµÄÒòËØÖ÷ÒªÊÇ˲ʱ¸ß·åµ¼ÖµÄÂß¼­²ãLogicʵÀýµÄϵͳ×ÊÔ´±»ÓùâºÍÔ­×Ó²ãDas¶ÔÊý¾Ý¿âµÄ·ÃÎʳ¬Ê±¡£

1£©Logic¿É¿¿ÐÔ£ºÂß¼­²ãʵÀýµÄϵͳ×ÊÔ´±»ÓùⷢÉúÔÚÒµÎñµÄÏ໥ӰÏ죻ÀýÈç˲ʱ´óÁ¿Óû§µÇ¼IMϵͳʱ£¬Logic´ó²¿·Ö»òÈ«²¿Ï̱߳»µ÷¶ÈÓÃÓÚ´¦ÀíÓû§µÇ¼ҵÎñ£¬¶øûÓÐ×ã¹»µÄ×ÊÔ´È¥´¦Àí˽ÐŵÈÒµÎñ¡£Ìá¸ßLogic¿É¿¿ÐԵķ½°¸£¬¿ÉÒÔ¸ù¾Ý΢·þÎñ˼Ïë¶ÔLogic°´¹¦ÄÜÖ°Ôð½øÐвð·Ö£¬Èç²ð·Ö³ÉLogin_Logic¡¢Msg_Logic¡¢Contact_LogicµÈ¡£

2£©Das¿É¿¿ÐÔ£º¶ÔÊý¾Ý¿âµÄ·ÃÎʳ¬Ê±·¢ÉúÔÚÊý¾Ý¿â¸ºÔؽϸßʱ£¬ÀýÈçÍÆËÍǧÍò¼¶¹ã²¥ÏµÍ³ÏûϢʱ£¬»áÓдóÁ¿µÄ¸üвÙ×÷Âäµ½Êý¾Ý¿âÉÏ£¬´ËʱÊý¾Ý¿âÏìÓ¦½ÏÂý»ò³¬Ê±£»ÒòΪDas¶ÔÊý¾Ý¿âµÄ²Ù×÷ÊÇͬ²½µÄ£¬ËùÒÔ»áÔì³ÉDasÄÚ²¿¶ÓÁÐÇëÇóµÄ¶Ñ»ý£¬ÆäËûÒµÎñÇëÇóÒ²»á±»¶Ñ»ý¶øµ¼Ö³¬Ê±¡£Ìá¸ßDas¿É¿¿ÐԵķ½°¸£¬¿ÉÒÔ¸ù¾ÝÒµÎñÀàÐÍÔÚDasÄÚ²¿·Ö±ð´´½¨²»Í¬µÄÇëÇó¶ÓÁУ¬´Ó¶ø±ÜÃâÒµÎñµÄÏ໥ӰÏì¡£

13¡¢¼Ü¹¹ÌØÐÔ4£º¿ÉÀ©Õ¹ÐԺ͸ßÐÔÄÜ


1£©¿ÉÀ©Õ¹ÐÔ£º×ª×ªIMϵͳ¼Ü¹¹µÄ¿ÉÀ©Õ¹ÐÔÌåÏÖÔÚÂß¼­²ã£¬Âß¼­²ãLogicºÍExtlogicͨ¹ýÏûÏ¢¶ÓÁÐZZMQ½øÐнâñ¶¨ÖÆÀàµÄ¹¦ÄÜÐèÇóÔÚExtlogicÖнøÐÐʵÏÖ£¬±ÜÃâ¶ÔºËÐÄÒµÎñLogicµÄÓ°Ïì¡£

ZZMQ³ýÁ˽âñîLogicºÍExtlogicÍ⣬»¹¶Ôƽ̨µÄÒµÎñϵͳºÍIMϵͳ½øÐнâñî¡£

2£©¸ßÐÔÄÜ£º·ÖÎöIMϵͳ¼Ü¹¹£¬Èë¿Ú²ãºÍÂß¼­²ãÖ÷ÒªÊǼÆËãÄ£¿é£¬Ô­×Ó´æ´¢²ãÖ÷ÒªÊÇIOÄ£¿é£¬ÏµÍ³µÄÐÔÄÜÆ¿¾±¼¯ÖÐÔÚÊý¾Ý¿â¶Ë¡£ÌáÉýÐÔÄÜ·½°¸ÓУºÍ¨¹ýÔöÇ¿»úÆ÷ÅäÖá¢Ôö¼Ó»úÆ÷¡¢Ñо¿ºÍеĴ洢·½Ê½£¬ÈçÓû§ÁªÏµÈË¿ÉÒÔͨ¹ýKListÒýÇæ½øÐд洢¡£

14¡¢±¾ÎÄС½á


תתIMΪÓû§ÓëÓû§Ö®¼ä¡¢¿Í·þÓëÓû§Ö®¼ä¡¢Æ½Ì¨ÓëÓû§Ö®¼ä´òÔìÁËÒ»¸ö¸ßЧºÍ¿É¿¿µÄͨѶͨµÀ¡£

°´Î¢·þÎñ˽Ðźͷֲãģʽ¶ÔIMϵͳ¼Ü¹¹½øÐзֲ¼Ê½Éè¼Æ£¬¼Ü¹¹ÖÐÿ¸ö×é¼þÄ£¿éµÄ¹¦ÄÜÖ°ÔðÃ÷È·¡£

¾ßÌåµÄ¹¦ÄÜÖ°ÔðÈçÏ£º

  • 1£©Entry¸ºÔðά»¤TCPÁ¬½Ó£»
  • 2£©Http-Entry¸ºÔðά»¤HTTPÁ¬½Ó£»
  • 3£©Logic¸ºÔð´¦ÀíºËÐĵÄÇáÁ¿¼¶ÒµÎñ£¬LogicÒªÇó·þÎñÎȶ¨£»
  • 4£©Extlogic¸ºÔð´¦Àí·ÇºËÐĵÄÖØÁ¿¼¶ÒµÎñ£¬ExtlogicÒªÇó·þÎñ¿ÉÀ©Õ¹£»
  • 5£©Das¸ºÔð¶ÔÊý¾Ý¿â½øÐжÁд·ÃÎÊ£»
  • 6£©IMUIºÍJtransit¸ºÔð¶Ôƽ̨µÄRPC¿ò¼ÜZZRPC½øÐÐÊÊÅ䣻
  • 7£©MySQL¡¢TiDBºÍZZRedis¸ºÔð³Ö¾Ã»¯ºÍ»º´æÊý¾Ý£»
  • 8£©ZZMQ¸ºÔð¶Ôƽ̨µÄÒµÎñϵͳºÍIMϵͳ£¬ÒÔ¼°LogicºÍExtlogicÖ®¼ä½øÐнâñî¡£

תתIMµÄϵͳ¼Ü¹¹¾ßÓÐÉìËõÐÔ¡¢¸ß¿ÉÓᢿɿ¿ÐÔ¡¢¹¦ÄÜÀ©Õ¹ÐԺ͸ßÐÔÄÜ¡£

15¡¢²Î¿¼×ÊÁÏ


[1] dz̸IMϵͳµÄ¼Ü¹¹Éè¼Æ
[2] ¼òÊöÒƶ¯¶ËIM¿ª·¢µÄÄÇЩ¿Ó£º¼Ü¹¹Éè¼Æ¡¢Í¨ÐÅЭÒéºÍ¿Í»§¶Ë
[3] Ò»Ì׺£Á¿ÔÚÏßÓû§µÄÒƶ¯¶ËIM¼Ü¹¹Éè¼Æʵ¼ù·ÖÏí(º¬ÏêϸͼÎÄ)
[4] Ò»Ì×Ô­´´·Ö²¼Ê½¼´Ê±Í¨Ñ¶(IM)ϵͳÀíÂۼܹ¹·½°¸
[5] ´ÓÁ㵽׿Խ£º¾©¶«¿Í·þ¼´Ê±Í¨Ñ¶ÏµÍ³µÄ¼¼Êõ¼Ü¹¹ÑݽøÀú³Ì
[6] Ä¢¹½½Ö¼´Ê±Í¨Ñ¶/IM·þÎñÆ÷¿ª·¢Ö®¼Ü¹¹Ñ¡Ôñ
[7] ÏÖ´úIMϵͳÖÐÁÄÌìÏûÏ¢µÄͬ²½ºÍ´æ´¢·½°¸Ì½ÌÖ
[8] Ò»Ì׸߿ÉÓá¢Ò×ÉìËõ¡¢¸ß²¢·¢µÄIMȺÁÄ¡¢µ¥Áļܹ¹·½°¸Éè¼Æʵ¼ù
[9] Âí·äÎÑÂÃÓÎÍøµÄIMϵͳ¼Ü¹¹Ñݽø֮·
[10] ¹Ï×ÓIMÖÇÄÜ¿Í·þϵͳµÄÊý¾Ý¼Ü¹¹Éè¼Æ£¨ÕûÀí×ÔÏÖ³¡Ñݽ²£¬ÓÐÅäÌ×PPT£©
[11] °¢Àﶤ¶¤¼¼Êõ·ÖÏí£ºÆóÒµ¼¶IMÍõÕß¡ª¡ª¶¤¶¤ÔÚºó¶Ë¼Ü¹¹ÉϵĹýÈËÖ®´¦
[12] Ò»Ì×ÒÚ¼¶Óû§µÄIM¼Ü¹¹¼¼Êõ¸É»õ(ÉÏƪ)£ºÕûÌå¼Ü¹¹¡¢·þÎñ²ð·ÖµÈ
[13] ´ÓÐÂÊÖµ½×¨¼Ò£ºÈçºÎÉè¼ÆÒ»Ì×ÒÚ¼¶ÏûÏ¢Á¿µÄ·Ö²¼Ê½IMϵͳ
[14] ÏÐÓãÒÚ¼¶IMÏûϢϵͳµÄ¼Ü¹¹Ñݽø֮·
[15] »ùÓÚʵ¼ù£ºÒ»Ì×°ÙÍòÏûÏ¢Á¿Ð¡¹æÄ£IMϵͳ¼¼ÊõÒªµã×ܽá
[16] Ò»Ì×Ê®Íò¼¶TPSµÄIM×ÛºÏÏûϢϵͳµÄ¼Ü¹¹Êµ¼ùÓë˼¿¼
[17] vivoÖ±²¥ÏµÍ³ÖÐIMÏûϢģ¿éµÄ¼Ü¹¹Êµ¼ù
[18] Ò»Ì×·Ö²¼Ê½IM¼´Ê±Í¨Ñ¶ÏµÍ³µÄ¼¼ÊõÑ¡Ðͺͼܹ¹Éè¼Æ
[19] ΢ÐÅÍŶӷÖÏí£ºÀ´¿´¿´Î¢ÐÅÊ®ÄêÇ°µÄIMÏûÏ¢ÊÕ·¢¼Ü¹¹£¬Äã×öµ½ÁËÂð
[20] Я³Ì¼¼Êõ·ÖÏí£ºÒÚ¼¶Á÷Á¿µÄ°ì¹«IM¼°¿ª·Åƽ̨¼¼Êõʵ¼ù

¼´Ê±Í¨Ñ¶Íø - ¼´Ê±Í¨Ñ¶¿ª·¢ÕßÉçÇø£¡ À´Ô´£º - ¼´Ê±Í¨Ñ¶¿ª·¢ÕßÉçÇø£¡

±êÇ©:IM¼Ü¹¹
ÉÏһƪ£º²»ÎªÈËÖªµÄÍøÂç±à³Ì(Ê®¾Å)£ºÄÜPingͨ£¬TCP¾ÍÒ»¶¨ÄÜÁ¬½ÓºÍͨÐÅÂð£¿ÏÂһƪ£º¿ªÔ´IMÁÄÌì³ÌÐòHarmonyChat£º»ùÓÚºèÃÉNEXTµÄWebSocketЭÒé

±¾ÌûÒÑÊÕ¼ÖÁÒÔϼ¼Êõר¼­

ÍƼö·½°¸
´òÉÍÂ¥Ö÷ ×
ʹÓÃ΢ÐÅ´òÉÍ£¡ ʹÓÃÖ§¸¶±¦´òÉÍ£¡

·µ»Ø¶¥²¿