• Post Reply Bookmark Topic Watch Topic
  • New Topic

Async  RSS feed

 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to make async client-server, may be with spring?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Smith Brown wrote:How to make async client-server, may be with spring?

You need to ShowSomeEffort.
What have you researched so far ?
What makes you think Spring might be the way to go, as compared with other options ?
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm so sorry... I'm novice in this item. Who can help? Where to dig?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Smith Brown wrote:I'm so sorry... I'm novice in this item. Who can help? Where to dig?

You have to start with yourself. Come up with a detailed specification so you know exactly what you want to do. Try to come up with a specification that explains:
0) what is this application supposed to do
1) related to your product, what is a client
2) related to your product, what is a server
3) what is the relationship of client to server
4) what does the server serve
5) how is the client supposed to talk with the server
6) how is the server supposed to talk to the client
7) where is the server going to run, relative to the client
8) how many clients will there be
9) can clients interact with each other
10) what happens when a client disconnects
11) what happens when a client reconnects
12) is the client persistent in sessions
13) is the client persistent between sessions
14) what is a session
15) what are your security needs


These are just some general client/server type questions, but once you know what the application is supposed to do, there is a ton of domain-specific questions you need to answer. A good approach (I find, anyway) to come up with these questions and answer them is to consider how the application is supposed to be used. Consider the application from the user's perspective. Why is the user using the application? How does s/he connect? What does s/he expect when connected? What does s/he expect when coming back? Etc... Create a document which you use to describe the user's workflow from start to finish with every interaction you can think of (use-cases) so that you get an idea of how the application is 'expected to work.'

After that you can start to come up with an idea of structure and design.

Then you can think about implementation and start looking for specific technologies that might make your life easier.

But trying to choose a technology when the only concepts you have are 'async' 'client' and 'server' is an impossible task, and even if you choose one chances are it will either be wrong since there was not enough information put into making the choice.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to see how to make async crud example in java without ajax, jquery, with spring framework may be.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or RESTful Server with asynchronous client
 
H Paul
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since 4.x RELEASE

http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/
See 22.10.3 Async RestTemplate

AsyncRestTemplate allows Client to make rest request asynchronously to Restful Service (Server)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!