takaya treschi

Greenhorn
+ Follow
since Sep 24, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by takaya treschi

Thanks a lot for the answer and you are right when you say springboot doesn't make microservices......anyway the idea is to convert a monolithic application composed by 7-8 executables (and a lot of shared libraries) in a system based on 7-8 services (each executable independent). So I thought the best way was to make for each executable (jar app) a standalone service called from a sort of MMI (orchestrator to use the microservice notation). Anyway in order to be able to start/stop the app I decided to wrap my original app in a springbootapp with web REST/API enabled (tomcat encapsulated). At this point it is clear I can call the old executable via web using the parameters needed for example the old:

java -jar target/foo.jar -i abc                                                                                      
Missing required option: o
usage: utility-name
-i,--input <arg>    input file path
-o,--output <arg>   output file

in the simple case and after defined the controller:
http://localhost/foo?input=aaa&output=bbb

But what to do when the number of app options is high? Is there another way to perform the migration?
10 months ago
I'm trying to implement a microservice architecture starting from my monolithic architecture. the current implementation is composed by a certain number of executable jars called using a list of options (some mandatory and others optional); I was thinking to convert each of them in a service.  The idea is to build a sort of wrapper around of the current jar using springboot, adding one controller with a sort of start/stop to be called from outside for implementing the REST API interface , anyway it is not clear to me which is the best way, for an external app (or another service), to pass the list of options (I can pass a string or var=value structure but it looks heavy with many options). Can someone tell me which is the best way to do this migration, or if the idea to build a wrapper is wrong. Thanks a lot for the help.
10 months ago
I have a schema inside my database with big tables (the schema is composed by 20 tables and each of them contains 500 million rows equivalent about  40GB ). the tables are quite simple, they contain 3 fields: id,value,datetime.
The queries (normally are based on the search in a certain time range one or more parameters values) now are very slow and some improvement is needed, so for the structure of the tables I was thinking about horizontal partitioning by range using the datetime field as element or split the schema in different pieces each of them including data for a certain period of time.
The second solution will create some problems in the software using the database because according to the range time selected by the user, the query must be addressed to a specific DB, containing that period, so if the performances are similar I will prefer the fist one.
What do you think about the performances of the two solutions, is there any other (third) applicable solution?    
Well currently the simulator generates data to be inserted in the DB. such data are typically par1=2, par2=ON etc. The simulator generates some inserts in the DB and the tables (organized for parameter type: int,double,string ecc.) are 3 columns (parameter_name, date, value).
The improvement could be the association between a certain parameter with an event. It means I can register for a list of parameters (par1,par2, par3) and when one parameter, in the list, changes its value an event is launched and (final step) its representation is modified.
For example if I associate a par1 (with possible values 1 and 0) to a traffic light, and I'm registering for it, every time a new instance of par1 is received a notification is sent and the traffic light representation changes its color.
I imagine I can build the "circuit" using something like a javascript library defining the components and so on, but I have no idea how to connect and notify changes in the database with javascript events.

Thanks    
I am not sure to write in the correct area because my problem is not properly related with database anyway i will try :-)
I have a mysql database connected to a simulator generating data associated with the behaviour of an electric circuit, I would like to know if it exists the way to "mimic" such electrical circuit in a web page and the possibility to connect a circuit component with a certain parameter in the database that the simulator can change.
For example in the database I have the parameter A1, I am going to build a circuit in a web page and I associate to a certain circuit object the db parameter A1. When the simulator is running a new value of A1 is generated an event is sent to the "mimic"object associated with this parameter and the object changes color or update a label or something similar. Someone can help me with examples or articles to understand at least the technologies to be used.

Thanks
my company bought some years ago a web-product (I don't have the source) for computing statistics and so on. The backend used is  a mysql database. The structure is not complex (around 20 table) and few relationship among tables. Now  our company migrated to postgree and this app is the only one using mysql. We asked the product company to privide us a new version whis postgree as backend, but for different reason they don't want to do it. So I would like to know if it exists some tools/ libraries or implementing a code layer to continue to use our app as it is, but using a postgree backend, in a certain way to cheat with the app simulating a connection to mysql and converting the mysql call (select/write/update etc.) in a postgree calls.

Thanks for the help
   
I have a system with various standalone java applications and they are working in a collaborative way. It means all of them are producing a piece of information.
Currently the applications are exchanging information using the file system (read/write in a common directory). I would like to convert each of this standalone app in a service and then using eureka (or something similar to handle). Do you know a step to step procedure to convert my jar in a standalone ........I imagine the easiest way is to convert the application in a spring boot app and convert the file system interchange with a REST connection etc.
I read some generic guide but it could be nice to have an example with a real case .......Someone can help me?

Thanks
4 years ago
In our company we have complex java monolithic applications, which are the guidelines and the recommendations to follow in order to decide if it makes sense to migrate each application?  What do you think are (if exist) architectural patterns that can be leveraged to build microservices implementation strategy? Do you think there are specific area where the migration can be more complicated?

Thanks
4 years ago
Thanks for the quick answer, do you have some links of nice articles or examples where such approach is used, more oriented to the management of standalone java app than the monitoring of web server performances?

Thank s again
4 years ago
Hi,
I have a system composed by 5 standalone java applications, each of them is important for the good behavior of the system. Basically the output of one application is used as input for the next application until the final result. Now in order to monitor and manage such system I would like to build a web app that show me the status of each java application (running/blocked/dead etc.) and the possibility to start/stop/restart each of them remotely. I searched in google and I found solutions at level of microservices (my applications are not microservices) but nothing generic. I also explored the APM applications but it seems they are more oriented to the monitoring and preserving data.
Probably JMX can help in some way but I would like to start from something at higher level and possibly open-sorce. I saw a tool called "glu" but it seems it is going to be deprecated. Do you have some advice or do you can address me to some article or full examples?

Thanks for the help
 
4 years ago
I have a system with different java executables running standaolne at the same time.
I would like to have a panel that controls the start/stop of these applications and displays the current status.
Something like the Xampp controller from where it is possible to start/stop apache,mysql etc. and in each moment can be checked to see if the application is running.
I start to implement myself because I need something easy (not at the level of Nagios) but probably there is already something around.

Can someone help me?
Thanks
6 years ago
I tried to implement what you suggested and more or less it works, anyway it is not really flexible so everytime the structure changes I have to go through the code. I saw a library called preon. Has someone use it? Do you have a simple example?
7 years ago
Well it is a solution,but i was looking for a less violent solution 😀 . for example i was thinking to use the lambda expressions.... But still I have some problems. Someone can help me please?
Thanks
7 years ago
Yes it is correct if you have only one string, but imagine you receive many strings with the same format, and you want always extract the same structure. It could be nice to save the structure in same place and then apply it to the string ....a sort of codec.
7 years ago
I have an hex string that i have to interpretate according to a structure.
E.g 01332211223344 with structure byte,short,int.
In this case i would like to obtain :
byte is the conversion of 01
Short the conversion of 3322 and int the 11223344. Are there some java library to do such processing?
7 years ago