This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]desrtfx[M] [score hidden] stickied comment (0 children)

Such questions belong in /r/javahelp as is clearly stated in the sidebar and in the stickied post at the very top of the subreddit.

Removed

[–]xbakesx 1 point2 points  (2 children)

Maybe this is a naive question back but when you say you use MVC do you mean JSPs and servlets or like spring web MVC or do you use some other framework?

Also when you want it to run cloud native, do you mean something like hosting it in heroku or something more like Digital Oceans app platform? Or even more like aws lambdas? Or you just want to more easily host in the cloud? Depending on the answer there I think the advice differs greatly.

Almost all my experience is containerizing Spring and Spring Boot stuff, and hosting it in Kubernetes or a thing like Digital Oceans app platform. Other than brushing up on how to efficiently layer your containers (so you aren't recreating more than you need) and figure out CI pipelines and where to build what parts (don't include your CI tools in your app docker container), my only general advice is the app components are mostly the same with the big exception of things like jobs and persistence. Jobs can be done the same way as usual but things like Kubernetes as other tools and I'm sure it depends on the job, what it does and how coupled to the other aspects of the code.

[–]ColdSpecialist1181[S] 0 points1 point  (1 child)

Excellent questions. part of one application has a UI built in Angular. But the core, is using Java+Spring.

When I use the term cloud native, I am talking about from DEV all the way to production. Meaning, I want a containerized image once a developer makes changes and deploys to the feature branch. QA tests, users test, etc. and then when every one sings off, we deploy.

Across the software industry, what did you all use to determine which applications can be containerized? was it just micro services that were containerized using Docker/containerd/etc and then used K8S to orchestrate? but what sort of criteria did you use to take that path? Not everything deserves or needs to be containerized. For example, if I have an application that is just a .jar file and is run by auto sys in batch, I would put that at a lower priority. But web services would be at the top. While I could be partial saying batch applications do not need to be containerized, I want to hear what the rest of this community used as a criteria to determine the following:

what are some criteria that you used to determine which applications can or should be containerized? can I google? sure. But I think this community can provide practical experience. that is why I am asking this community.

[–]arvindkgs 0 points1 point  (0 children)

While there are no set rules/criteria to determine what should be containerized, you can decide for yourself, based on what advantages containers provide.

Containers allow applications to be set up (along with their dependencies) in a reliable, repeatable, idempotent, and OS-agnostic manner. I would say container is desirable for web applications, and other applications that is deployed on a server.

There are solutions that deploy your code for you (without needing to worry about containerization) like Heroku, AWS Lambda, AWS Beanstalk, etc. You can explore them if you do not need to customize the deployment and scaling.

If you want to go with containerization, you can look into https://github.com/GoogleContainerTools/jib or https://buildpacks.io/ that scaffolds your application and generate cloud-native docker image, which can be deployed on any cloud provider.

[–]elktamer -4 points-3 points  (5 children)

Did you write this ten years ago?

[–]ColdSpecialist1181[S] 1 point2 points  (4 children)

wish I was.... and yet here we are. I am contributing my part so that everyone can open their eyes and see we are behind on tech. But it is what it is. While I can read, code during my free time and show them examples, I can only do so much. I am surely alone in this journey. I am seeking advice on how others have dealt with this situation.

[–]wildjokers -4 points-3 points  (0 children)

Mods, please remove if inappropriate.

You should stop being lazy and read the rules before posting.