Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to implement modularity system (J2EE) to allow changes of the type modules/plugins/add ons.
I want to know how to start, what approach I should follow.
Are there any new design patterns for this type of system ?
or do I need a new technology (message bus, osgi) ?
Thanks in advance
Mhadjis
Spring would be a good starting point. Spring context files let you specify most of the architecture in XML and the replace them later. This makes for a very modular architecture. Now in terms of being able to write "plugins" like where a user can provide a jar file and it hooks into the app dynamically that is something you'd have to roll yourself. However, Spring could help you there again by providing a lot of tools for abstracting out the configuration of plugins and loading them (loading them as Spring contexts).
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I would know how to describe this archtechture as a backend I used spring boot, java, flask and python to deploy rest api and as a frontend I used angular is it a mircoservices architechture ?
"Is it a microservices architecture ?" -
It is not possible to say from the limited information you have provided.
There is no single canonical definition of Microservices; see Wikipedia. So deciding whether a system is implementing a Microservices architecture is always somewhat subjective.
What you have described in your Question matches a couple of the bullet points in the Wikipedia page:
The components are process that communicate over a network using a technology agnostic protocol.
The components are implemented in multiple languages.
But these are not sufficient to say one way or another. The other things that matter include the granularity of the services, whether they can be developed independently, whether they can be deployed and used independently, and so on.
My advice would be to read the descriptions for Microservices, then come to your own conclusion.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am getting task(for learning new technologies) to create a facebook like project with
1. Auth (Spring Boot,Spring security, MySQL, ember.js)
2. Messaging (Spring Boot, Kafka,Cassandra, ember.js)
3. Member (Spring Boot, ember.js)
4. Reporting (Kafka, Spark, ember.js)
functional.
I need to get help for project structure. Should I have four separated modules (like auth, message, member, report) + core module. And what I should put in core module(entity beans, helpers, utils...)?
Thanks in advance.
Keeping code organized on huge projects is important, making each functionality into it's own module is desired.
But only if you are experienced enough should you begin with that. It might be better to start off in one module and expand later into separate modules.
In the core you construct tests that determine if the application as a whole is functional, etc. Core could also include the REST for everything else than the modules you already said.
Or do you plan to make the front with react?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What is the best solution to configure rdf/owl database for spring web mvc applications?
I am searching a solution to orm for owl in spring application.
Have you looked into Stardog? I'm not sure what your exact goal is with the database, but this is what I use for creating/accessing/querying/etc. triple stores programmatically. They have an API called SNARL - here is a good example of how to use it with Java. They actually have a section in their docs for Spring Programming and use some different beans. I use a combination of the spring programming (for querying) and the method in the first link (for setting up dbs and loading files).
Downside is OWL/XML and Owl Functional Syntax are not supported file formats, but you can just convert your file to RDF/XML (esp. easy if you're using Protege). If you're not using Protege, there are other ways to do it.
If you have any further questions I'm happy to help out.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Vertx and Spring both can be used to build entire REST application with many features like metrics calculation, monitoring via JMX etx.
a) What is the difference between Spring Boot and Vertx?
b) I stumbled upon an article: http://keaplogik.blogspot.in/2015/11/spring-boot-vertx-microservice-tech.html.
It describes a techstack that mixes both vertx and Spring Boot, but being new to both have not been able to figure out the usage in the mentioned link.
I am currently working on a REST application project, so I wanted to pick the correct stack before diving in.
Thanks in advance.
There is no correct (or incorrect) stacks, just stacks that fits your needs or not. In that case, either one is good. My personal preference goes for vertx, but you should try both and make your own opinion.
Both documentation is good, so take few hours on each, experiment, and choose based on your own experience.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
A Java developer (with lots of experience in sophisticated, high-performance environments) very recently commented that "composition is not used much anymore." I was surprised by this comment. Is this true?
On the one hand, other answers on this forum indicate that difference between composition and aggregation can be ambiguous (can the whole exist without the part; does the part exist throughout the life of the containing object?). But perhaps in all of these cases the question stands--how to add behavior to an existing class or class hierarchy.
The context of his comment was a discussion of possible alternatives to inheritance. If this developer is correct, what has replaced composition in working practice? Mix-ins through added interfaces?
Any perspectives are welcome!
If anything, it's probably used now more than ever thanks to dependency injection frameworks like Spring. The model that all of the Java developers I know use is to build classes that relate to one another in functionality more by interface and purpose and to use Spring to inject them according to a particular configuration (ex the ability to replace entire security frameworks just by changing a spring configuration file and adding a few new JAR files).