Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM61235

Konnect: A Distributed Microservices Architecture for Real-Time Chat with Multi-Task NLP and Context-Aware Toxicity Dampening

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM61235

Volume:

10 |

4 |

April 2026

Pages:

1-7

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
10.55041/IJSREM61235

License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Share this article:

Authors

AS

Ankit Sinha

Computer Applications,

Lovely Professional University, Phagwara, Punjab

Download Author Certificate
SC

Shantanu Chhetri

Computer Applications,

Lovely Professional University, Phagwara, Punjab

Download Co-Author Certificate
RS

Raipuriya Sakshi

Computer Applications,

Lovely Professional University, Phagwara, Punjab

Download Co-Author Certificate
MG

Manan Gulati

Computer Applications,

Lovely Professional University, Phagwara, Punjab

Download Co-Author Certificate
DO

Daniel Odametey

Computer Applications,

Lovely Professional University, Phagwara, Punjab

Download Co-Author Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

Automated content moderation within group messaging platforms poses a compound engineering challenge: the system must classify harmful text with reasonable precision while operating under sub-second latency constraints imposed by conversational user experience expectations. Existing approaches that rely exclusively on transformer-based classifiers produce frequent false positives on colloquial negative expressions such as "I hate Mondays" or "this exam is killing me," which carry no intent to harm yet trigger high toxicity scores. This paper presents Konnect, a cloud-native group messaging platform built on six containerized microservices interconnected through Apache Kafka publish-subscribe pipelines. The natural language processing subsystem pairs a RoBERTa-based sentiment classifier with a BERT-based toxicity detector to analyze every message asynchronously. We introduce a post-classification dampening layer that performs pronoun-target resolution and emotional-venting pattern recognition to suppress false positives before scores enter a Redis-backed sliding-window aggregation engine. The aggregation engine computes composite group-level moderation scores and drives a four-tier graduated escalation framework. The benchmark results on a dataset containing 2,400 annotated chat messages indicate that the dampening layer cuts down false positives by 38% while maintaining 97.2% of true positives. The end-to-end latency of the pipeline, from ingesting the message at the Kafka broker to delivering the scores to WebSocket clients, takes an average of 312 milliseconds on a standard CPU.

KEYWORDS

microservices publish/subscribe toxicity detection sentiment analysis score dampening sliding window aggregation real-time content moderation transformer inference Kafka WebSocket

Cite This Article

Ankit Sinha, Shantanu Chhetri, Raipuriya Sakshi, Manan Gulati, Daniel Odametey, "Konnect: A Distributed Microservices Architecture for Real-Time Chat with Multi-Task NLP and Context-Aware Toxicity Dampening," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 4, pp. 1-7, April 2026. https://doi.org/10.55041/IJSREM61235

Full Article/Conclusion

This paper presented Konnect, a microservices-based messaging platform that integrates dual transformer classifiers with a post-classification dampening layer for real-time content moderation. The dampening layer addresses a practical gap in toxicity classification: the tendency of pre-trained models to assign elevated scores to colloquial negative expressions that carry no interpersonal hostility. By examining whether the input text targets a human referent, the layer attenuates false positives by 38 percent while preserving 97.2 percent of true positive detections. The Kafka-based pub/sub architecture enables horizontal scaling of the inference pipeline, with near-linear throughput gains demonstrated up to four consumer replicas. The composite moderation score, computed over a Redis-backed sliding window with a safety floor mechanism,  drives  a  four-tier  graduated  escalation framework that balances automated enforcement with moderator authority

References

[1]  A. Vaswani et al., “Attention Is All You Need,” in Proc. NeurIPS, 2017, pp. 5998–6008. [2]   J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” in Proc. NAACL-HLT, 2019, pp. 4171–4186. [3]  Y. Liu et al., “RoBERTa: A Robustly Optimized BERT Pretraining Approach,” arXiv preprint arXiv:1907.11692, 2019. [4]   L. Hanu and Unitary team, “Detoxify,” GitHub repository, 2020. [Online]. Available: https://github.com/unitaryai/detoxify [5]  F. Barbieri, J. Camacho-Collados, L. Neves, and L. Espinosa-Anke, “TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification,” in Findings of EMNLP, 2020, pp. 1644–1650. [6]  J. Kreps, N. Narkhede, and J. Rao, “Kafka: A Distributed Messaging System for Log Processing,” in Proc. NetDB Workshop, 2011. [7]  M. Kleppmann and J. Kreps, “Kafka, Samza and the Unix Philosophy of Distributed Data,” IEEE Data Engineering Bulletin, vol. 38, no. 4, pp. 4–14, 2015. [8]   K. Crawford and T. Gillespie, “What is a flag for? Social media reporting tools and the vocabulary of complaint,” New Media & Society, vol. 18, no. 3, pp. 410–428, 2016. [9]  S. Jhaver, I. Birman, E. Gilbert, and A. Bruckman, “Human-Machine Collaboration for Content Regulation,” ACM Trans. Comput.-Hum. Interact., vol. 26, no. 5, pp. 1–35, 2019. [10]   L. Dixon, J. Li, J. Sorensen, N. Thain, and L. Vasserman, “Measuring and Mitigating Unintended Bias in Text Classification,” in Proc. AAAI/ACM Conf. on AI, Ethics, and Society, 2018, pp. 67–73. [11] M. Sap, D. Card, S. Gabriel, Y. Choi, and N. A. Smith, “The Risk of Racial Bias in Hate Speech Detection,” in Proc. ACL, 2019, pp. 1668–1678.

Editorial & Review Transparency

Publication Date

7/15/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

2

Total views since publication

PDF Downloads

5

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

Plagiarism Screening

This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.

Conflict of Interest

The authors declare no conflict of interest related to this research work.

Funding Information

No funding information available for this research.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...