Is asciidoctor-java-integration's factory thread safe?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is asciidoctor-java-integration's factory thread safe?

gregturn
I have deployed an embedded version of Asciidoctor.Factory.create() into my app, and it does the job. The thing is, it's expensive to create the factory over and over. Is is thread safe such that I could instantiate a factory once, and re-use it multiple times, from multiple web requests coming in simultaneously?
Greg Turnquist (@gregturn)
Author of Darklight and Hacking with Spring Boot 2.3
Sign up for my newsletter and get a FREE e-book
Reply | Threaded
Open this post in threaded view
|

Re: Is asciidoctor-java-integration's factory thread safe?

asotobu
Hi,

the same was asked today here: http://discuss.asciidoctor.org/Java-thread-safety-and-other-server-questions-td976.html#a1051 So I suggest following that thread :D
Reply | Threaded
Open this post in threaded view
|

Re: Is asciidoctor-java-integration's factory thread safe?

gregturn
Thanks!
Greg Turnquist (@gregturn)
Author of Darklight and Hacking with Spring Boot 2.3
Sign up for my newsletter and get a FREE e-book
Reply | Threaded
Open this post in threaded view
|

Re: Is asciidoctor-java-integration's factory thread safe?

mojavelinux
Administrator

To pull one point from that thread, I think the Asciidoctor instance lends itself well to a pool. It's something worth exploring.

-Dan

On Nov 22, 2013 7:05 AM, "gregturn [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
Thanks!


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-asciidoctor-java-integration-s-factory-thread-safe-tp1047p1055.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML