Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Comments on Will my implementation of a Spring Boot app work after being deployed on the Internet?
Post
Will my implementation of a Spring Boot app work after being deployed on the Internet?
Say I want to implement a very basic group chat application. I use the H2 database, a user class, a controller, and a text file in the Resources folder that stores the chat texts. All texts would be appended to the text file and a JS function would refresh the page periodically with the file data. Now of course this will directly work only within my network. But if I upload this project to Heroku or something similar, would it still work as intended?
Almost all examples online use WebSocket. I'm unable to understand why because everyone connecting to the my app online will be served by the same controller and append data to the same text file. Or am I completely wrong?
1 comment thread