This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

single-threaded or syncrhonous logging

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is single-threaded or syncrhonous logging ?
thanks is advance
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kamesh aru:
what is single-threaded or syncrhonous logging ?
thanks is advance
Synchronous means that the logging would occur as a single sequence of events, described by the program code written in Java.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it means you have to wait for logging to complete before going on to the next line of your code. If you find that logging is slow - perhaps it sends emails or writes to databases - you might think that's a problem.

Then you'd be interested in asynchronous logging that moves the slow parts to another thread so you can return something to the user sooner. Message queuing is a common solution here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic