DEVELOPMENT OF A REAL-TIME VOICE COMMUNICATION SYSTEM USING WEBRTC AND SPRING BOOT

Abstract

This work presents the development and stability verification of a real-time web voice communication system prototype, grounded in the decoupling between the signaling control plane and the media data plane. The study is characterized as applied, exploratory, and descriptive research, focused on technological development and accompanied by functional verification and testing. The application was implemented in a client-server architecture, where the control plane (server) adopted the Java 21 ecosystem with Spring Boot 4.1.1 using virtual threads for lightweight routing via Secure WebSocket. The media plane (client) adopted the WebRTC standard in a direct P2P mesh topology, integrating the Opus codec with dynamic parameterization. Verification covered network metrics collection in rooms with 2 to 8 members and stress testing with Grafana K6, totaling 4,900 virtual users across 980 rooms, monitored via Java Flight Recorder and JDK Mission Control. The results indicated that virtual threads maintained server stability with 100% delivery across 203,041 messages, reducing native operating system thread creation by 82.82% and suspension blocks by 65.49%, while the P2P mesh ensured latency below 10 ms in a local network and an upload ceiling of 216 kbps for up to four nodes, proving traffic saturation for larger groups. It is concluded that the prototype demonstrated technical feasibility and stability for decentralized communication. The evaluation was limited to local networks, without the inclusion of end-user testing.

Author Biographies

Henry Guidelli, Universidade de Araraquara

Undergraduate student in Information Systems at the Universidade de Araraquara.

Felipe Diniz Dallilo, Universidade de São Paulo

PhD in Software Engineering from the Universidade de São Paulo.

References

ALVESTRAND, Harald. Overview: Real-Time Protocols for Browser-Based Applications (RFC 8825). Fremont: Internet Engineering Task Force (IETF), jan. 2021. Disponível em: https://datatracker.ietf.org/doc/html/rfc8825 Acesso em: 15 mar. 2026. DOI: https://doi.org/10.17487/RFC8825

BARBOSA, Rodrigo et al. Avaliação do Desempenho de Aplicações VoIP P2P. Recife: Centro de Informática – Universidade Federal de Pernambuco (UFPE), 2005. Disponível em: https://www.researchgate.net/publication/228344277_Avaliacao_do_Desempenho_de_Aplicacoes_VoIP_P2P Acesso em: 15 mar. 2026.

BATEMAN, Alan; PRESSLER, Ron. JEP 444: Virtual Threads. Redwood Shores: OpenJDK / Oracle, 2023. Disponível em: https://openjdk.org/jeps/444 Acesso em: 15 mar. 2026.

DEUS, Ítalo M. et al. Avaliação de Desempenho de Frameworks Web Java entre Reatividade e Threads Virtuais: Um Estudo Comparativo entre Spring e Quarkus. Revista de Sistemas e Computação, 2025. Disponível em: https://doi.org/10.5753/wperformance.2025.8657 Acesso em: 15 mar. 2026. DOI: https://doi.org/10.5753/wperformance.2025.8657

GARCIA, Gabriel Bugés; PAGANI, Carlos. Do monolítico ao microserviço: a transformação das equipes e sistemas. São Paulo: Instituto Federal de São Paulo (IFSP), 2021. Disponível em: https://suap.ifsp.edu.br/media/edu/projeto_final/TCC_gabriel.pdf Acesso em: 23 mar. 2026.

GOMES, Ana; LOURENÇO, Rodrigo. Internet Live Streaming. Lisboa: Instituto Superior Técnico (IST), 2012. Disponível em: http://www.img.lx.it.pt/~fp/cav/ano2014_2015/Trabalhos_MEEC_2014_2015/Artigo11/SiteCAVFinal_68370_69924/SiteCAVFinal/artigo.pdf Acesso em: 23 mar. 2026.

GRAFANA LABS. Grafana k6 Documentation: Open-source load testing tool for engineering teams. 2026. Disponível em: https://grafana.com/docs/k6/latest/ Acesso em: 23 mar. 2026.

GREGOL, Régis E.; SCHUTZ, Fernando. Recursos de escalabilidade e alta disponibilidade para aplicações web. Revista Meditec, Medianeira, v. Especial, p. 28-31, 2013. Disponível em: http://dx.doi.org/10.3895/recit.v4.n7.4189 Acesso em: 23 mar. 2026. DOI: https://doi.org/10.3895/recit.v4.n7.4189

KUROSE, James F.; ROSS, Keith W. Redes de Computadores e a Internet: Uma Abordagem Top-Down. 8. ed. São Paulo: Pearson Education do Brasil, 2021.

MEDEIROS, André Marçal. Análise comparativa entre Spring Boot e Jakarta EE: um relato de experiência. Lavras: Universidade Federal de Lavras (UFLA), 2025. Disponível em: https://sip.prg.ufla.br/publico/trabalhos_conclusao_curso/acessar_tcc_por_curso/ciencia_da_computacao/index.php?dados=20251201811266 Acesso em: 23 mar. 2026.

MENDONÇA, Gabriel G.; LEÃO, Rosa M. M. BTStream: um ambiente para desenvolvimento e teste de aplicações de streaming P2P. In: SIMPÓSIO BRASILEIRO DE REDES DE COMPUTADORES E SISTEMAS DISTRIBUÍDOS (SBRC), 30., 2012, Ouro Preto. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2012. p. 956-963. Disponível em: https://www.researchgate.net/publication/267202351_BTStream_-_Um_ambiente_para_desenvolvimento_e_teste_de_aplica_oes_de_streaming_P2P Acesso em: 23 mar. 2026.

ORACLE. JDK Mission Control and Java Flight Recorder Documentation. Redwood Shores: Oracle Corporation, 2026. Disponível em: https://docs.oracle.com/en/java/java-components/jdk-mission-control/ Acesso em: 10 abr. 2026.

PANDITA, Vishesh. Benchmarking the Performance of Java Virtual Threads in High-Throughput Workloads. Dissertação (Mestrado) – National College of Ireland, Dublin, 2024. Disponível em: https://norma.ncirl.ie/id/eprint/8134 Acesso em: 23 mar. 2026.

SANTOS, Anderson Mendes dos. Um método para apoiar decisões de projeto em aplicações web com streaming de mídia visando desempenho e escalabilidade. Dissertação (Mestrado em Informática) – Universidade Federal de Alagoas (UFAL), Maceió, 2016. Disponível em: http://www.repositorio.ufal.br/handle/riufal/2043 Acesso em: 10 abr. 2026.

SPITTKA, Julian; VOS, Koen; VALIN, Jean-Marc. RTP Payload Format for the Opus Speech and Audio Codec (RFC 7587). Fremont: Internet Engineering Task Force (IETF), jun. 2015. Disponível em: https://datatracker.ietf.org/doc/html/rfc7587 Acesso em: 10 abr. 2026. DOI: https://doi.org/10.17487/RFC7587

TANENBAUM, Andrew S.; WETHERALL, David J. Redes de Computadores. 5. ed. São Paulo: Pearson Prentice Hall, 2011.

VALIN, Jean-Marc et al. Definition of the Opus Audio Codec (RFC 6716). Fremont: Internet Engineering Task Force (IETF), set. 2012. Disponível em: https://datatracker.ietf.org/doc/html/rfc6716 Acesso em: 23 mar. 2026.

VIEIRA, Alex Borges. Transmissão de Mídia Contínua Ao Vivo em P2P: Modelagem, Caracterização e Implementação. Tese (Doutorado em Ciência da Computação) – Universidade Federal de Minas Gerais (UFMG), Belo Horizonte, 2010. Disponível em: https://hdl.handle.net/1843/SLSS-85BNKG Acesso em: 23 mar. 2026.

How to Cite

Guidelli, H., & Dallilo, F. D. (2026). DEVELOPMENT OF A REAL-TIME VOICE COMMUNICATION SYSTEM USING WEBRTC AND SPRING BOOT. RECIMA21 - Revista Científica Multidisciplinar, 7(11), e7119511. https://doi.org/10.47820/recima21.v7i11.9511
Crossmark logo

Similar Articles

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)