Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active January 11, 2016 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/55b8d95e42f3c54f6674 to your computer and use it in GitHub Desktop.
Save AdamBien/55b8d95e42f3c54f6674 to your computer and use it in GitHub Desktop.
22ndAirhacksQ&A.md
@masumcse1
Copy link

How to define capacity planning for java ee application ?

I have completed development a Enterprise application Using JAVAEE7 on wildfy 10 with 3 tier architecture . i am using
JSF,primefaces CDI EJB JPA Bean validation , SOAP-ws.
Currently we starting system testing (functionality ) test with 10 tester .
After finishing system test ,i have to deployment this application into product environment.

it is financial application , Branch less banking application : agent module, customer module, Account -loan/deposit, cash in/out related
critical transaction operation .

I have 500 different branch user . i can not define capacity planning for this application .
I have to run this application on Wildfly 10 community edition, i can not use enterprise version jboss eap for some limitation.

Please give me idea , How to define a capacity planning following attribute?

  1. Which linux os version 32/64 bit

  2. which JVM version , 32/64 bit

  3. Hardware size : which server, ram size, cpu core

  4. Network attribute : bandwidth

    ------------------------------JVM parameter related attribute-----------

    1. how to measure appropriate : heap size, Meta space, gc collection strategy.
    2. how to monitor different level critical things , that occur maximum enterprise application

I have no clear idea how to define this attribute for above requirements.

@Chilis92
Copy link

Hi Adam,

My question is related to JMS and WebSockets.
I know that using these two technologies I can send and receive messages but i don't know exactly what is the difference.
If I need to build an application that needs to comunicante its transactions in real time which should I use.

@nebrass
Copy link

nebrass commented Jan 10, 2016

Hello Adam !
First of all, thank you and congratulations for the 2 latest Vimeo courses !
My questions for this month are:

  • How do you make a migration from PL/SQL to Java EE (JPA/EJB) ?
  • If we want to compare Spring vs JavaEE, who will be the winner especially in the performance part?
  • For Java EE 8: we will have a support for NoSQL DBs in JPA 2.2?
  • Do you recommand using search engines like Elasticsearch ? If yes, which engine you recommand?

Thank you so much for this monthly opportunity. We hope to see you in some events in France (Devoxx France, NetBeans Day Paris..)
Thank you again and happy new year!

@gbourant
Copy link

Hey Adam !
Is JavaEE capable or the right choice for a Voip Service ?
Thank you Adam and have a great year !

@mmonge
Copy link

mmonge commented Jan 11, 2016

Hi Adam!

my question is about AngularJS + Java EE 7 REST API + 3rd Party REST APIs.

In Munich Airhacks you mentioned Keycloak for securing AngularJS + Java EE 7 REST API applications, I already read about it and works great. AngularJS sends the Auth Token for the REST API, if the REST API is configured with the same Keycloak Realm all works like a charm.

But what happens when I create an AngularJS App that authenticates with his own Keycloak Realm and the app consumes a couple of 3rd Party REST APIs using Keycloak too, but a diferent Keycloak Server (see Image1).

Image1

So in the AngularJS app I have users john and roger on the angularRealm, the app tries to consume the resources in REST API1 and REST API2 but needs a diferent authentication. How can I make this work? I'm already thinking about this not been a good practice because I probably will need to burn the 3rd Party credencials somewhere in the JavaScript code.

I'm evaluating the need of an intermediate REST API for the AngularJS app, so this new REST API will be the one who connects to the 3rd Party REST APIs (see Image2).

Image2

But in this second scenario, how will the APP REST API create a REST Client for the 3rd Party REST APIs? How the REST Client perform authentication without the redirection to the Keycloak Login URL? (I'm already reading the Keycloak documentation.)

My question is your opinion about these two scenarios, what do you think is the best way of doing this communication with the 3rd Party REST APIs? And if you know how to perform the authentication to the 3rd Party REST API's from the Java EE, probably from an EJB as REST Client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment