Java Lightweight High Performance Instant Messaging Server for Millions of Online Users

Java Lightweight High Performance Instant Messaging Server for Millions of Online Users

2022-09-30 1 1,814
Resource Number 43919 Last Updated 2025-02-24
¥ 0 USD Upgrade VIP
Download Notice Demo
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

Product Details 商品属性

  • Language: Java
  • Database:
  • License: License-Free
  • Source Code: Fully Open Source
  • Specification: Full Website Source
  • Delivery: Automatic (instant download after payment)

J-IM recommended in this issue is a lightweight, high-performance IM developed with JAVA language, which supports hundreds of thousands to millions of online users in a single machine. The main goal is to reduce the threshold of instant messaging and quickly build a low-cost access online IM system.

class=”pgc-h-arrow-right”>J-IM

J-IM is a lightweight, high-performance IM developed in JAVA language, which supports hundreds of thousands to millions of online users. The main goal is to reduce the threshold of instant messaging and quickly build a low-cost access online IM system. Through very simple message format can realize multi-end message sending between different protocols such as built-in (Http, Websocket, Tcp custom IM protocol), and provide through the http protocol api interface for message sending without caring what protocol the receiver belongs to, a message format to do everything!

class=”pgc-h-arrow-right”>

  • High performance (a single machine can support hundreds of thousands to millions of people online simultaneously)
  • Lightweight and highly scalable
  • Support cluster multi-machine deployment
  • Support SSL/TLS encrypted transmission
  • Message format extremely concise (JSON)
  • One port supports plugging and unplugging multiple protocols (Socket custom IM protocol, Websocket, and Http), and each protocol can be deployed independently.
  • Built-in message persistence (offline, history, roaming) to ensure message reliability and high-performance storage
  • Various rich API interfaces.
  • Zero-cost deployment, one-click startup.

class=”pgc-h-arrow-right”>

< p data – track = “16” > < strong > 1. Chat request message structure < / strong > < / p >

{
   "from": "Source ID",
   "to": "Target ID",
   "cmd":"Command code (11)int type ",
   "createTime": "Message creation time type long ",
   "msgType": "Message type int (0:text, 1:image, 2:voice, 3:vedio, 4:music, 5:news)",
   "chatType":" Chat type int type (0: unknown,1: public chat,2: private chat)",
   "groupId":"Group id is only required if chatType is (1),String type ",
   "content": "content ",
   "extras" : "Extended field,JSON object format: {' extended field name ':' extended field value'}"
}

Request :COMMAND_CHAT_REQ(11) Response :COMMAND_CHAT_RESP(12)

< p data – track = “19” > < strong > 2. The authentication request message structure < / strong > < / p >

{
    "cmd":" Command code (3)int ",
    "token": " 
}

Request :COMMAND_AUTH_REQ(3) Response :COMMAND_AUTH_RESP(4)

< p data – track = “23” > < strong > 3. Handshake request message structure < / strong > < / p >

{
    "cmd":" Command code (1)int ",
    "hbyte": 
}

Description: Request :COMMAND_HANDSHAKE_REQ(1) Response :COMMAND_HANDSHAKE_RESP(2)

< p data – track = “26” > < strong > 4. Login request message structure < / strong > < / p >

{
    "cmd":"Command code (5)int type ",
    "userId": "User account ",
    "password": " ,
    "token": " This field can coexist with userId, password, or only one)"
}

< p data – track = “28” > < strong > 5. Heart request message structure < / strong > < / p >

{
    "cmd":" Command code (13)int type ",
    "hbbyte":" Heartbeat 1 byte " Span
}

Request :COMMAND_HEARTBEAT_REQ(13) Response :COMMAND_HEARTBEAT_REQ(13)

8. Get persistent chat message (offline + history + roaming) request structure

{
     < span class = "HLJS attr" - > "CMD" : < / span > < span class = "HLJS - string" > "command code (19) type int" < / span >,
     "fromUserId":" message to send user id(this field must be used with userId to get both chat messages), optional ",
     "userId":" Current user id(required field), when only this field,type must be 0,  Get all the offline messages (friends + groups) of the current user.
     "groupId":" group id(this field must be used with userId to get the current user-specified group chat message), optional ",
     "beginTime":" start time of message interval Date milliseconds double type, optional ",
     "endTime":" end time of message interval Date milliseconds double type, optional ",
     "offset":" page offset int type, like 0 in Limit 0,10, optional ",
     "count":" shows the number of messages, like 10 in Limit 0,10, optional ",
     < span class = "HLJS - attr" > "type" : < / span > < span class = "HLJS - string" > "message type (0: offline messages, 1: history message)" < / span >
}

Request :COMMAND_GET_MESSAGE_REQ(19) Response :COMMAND_GET_MESSAGE_RESP(20)

Use

  • server (quickly develop your own high-performance IM server) : Introduce jim-server and add the following code snippet to your pom.xml
<dependency>
    <groupId>org.j-im</groupId>
    <artifactId>jim-server</artifactId>
    <version>3.0.0.v20200501-RELEASE</version>
</dependency>
  • client (quickly develop your own IM client) : Introduce jim-client and add the following code snippet to your pom.xml
<dependency>
    <groupId>org.j-im</groupId>
    <artifactId>jim-client</artifactId>
    <version>3.0.0.v20200501-RELEASE</version>
</dependency>

class=”pgc-h-arrow-right”>

资源下载此资源为免费资源立即下载
Telegram:@John_Software
☆☆☆☆☆0 pts · 0 reviews
Updated 2025-02-24

Q&A

No questions yet. Ask the seller!

Reviews

No reviews yet. Share your experience after purchase.

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

TopTinker Chat & Dating Java Lightweight High Performance Instant Messaging Server for Millions of Online Users https://toptinker.com/43919.html

商家类型:个人(声明)

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. TopTinker will then settle the payment for the seller. Note: Please ensure to place your order and make payment through TopTinker. If you do not place your order and make payment through TopTinker, and the seller sends fake source code or encounters any issues, TopTinker will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by TopTinker until 7 days after the transaction is completed and both parties confirm that there are no issues. TopTinker will then settle with the seller. In case of any disputes, TopTinker will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through TopTinker, any issues and disputes have nothing to do with TopTinker, and TopTinker will not be responsible for any liabilities!
View details
  • 1. TopTinker will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. TopTinker cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact TopTinker for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that TopTinker can intervene quickly.
View details
  • 1. As a third-party intermediary platform, TopTinker solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the TopTinker platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

TopTinker Customer Service

24-hour online professional services