pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

voyage in singleton mode

JM
Jesus Mari Aguirre
Tue, Jun 1, 2021 9:34 AM

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one
doubt, is voyage thread safe? or do I have to take care about using a Mutex
because multiple teapot instances can call it.
Thank you all!

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it. Thank you all!
NH
Norbert Hartl
Tue, Jun 1, 2021 9:53 AM

You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent environment.

Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre jmariaguirre@gmail.com:

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it.
Thank you all!

You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem. Hope that answers your question. I use it just as it is in a concurrent environment. Norbert > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <jmariaguirre@gmail.com>: > > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it. > Thank you all!
JM
Jesus Mari Aguirre
Tue, Jun 1, 2021 4:12 PM

Thanks Norbert! Voyage is a great piece of software.

El mar., 1 jun. 2021 11:53, Norbert Hartl norbert@hartl.name escribió:

You should not have to worry. The two possible culprits are the VOCache
which should be thread safe done by a semaphore. The other one is the
connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent
environment.

Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one

doubt, is voyage thread safe? or do I have to take care about using a Mutex
because multiple teapot instances can call it.

Thank you all!

Thanks Norbert! Voyage is a great piece of software. El mar., 1 jun. 2021 11:53, Norbert Hartl <norbert@hartl.name> escribió: > You should not have to worry. The two possible culprits are the VOCache > which should be thread safe done by a semaphore. The other one is the > connection to the database. Here the connection pool removes that problem. > > Hope that answers your question. I use it just as it is in a concurrent > environment. > > Norbert > > > > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre < > jmariaguirre@gmail.com>: > > > > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one > doubt, is voyage thread safe? or do I have to take care about using a Mutex > because multiple teapot instances can call it. > > Thank you all! >
RW
Russ Whaley
Wed, Jun 2, 2021 10:25 PM

I am very interested in getting started with MongoDB. I’ve been using STON
for full object model read/writes, but I’d like to take the next step into
a more sustainable path (as my object models grow larger with time).

I’m using Pharo v9 on MacOS. Where should I start?  Voyage?  Any
pointers/tips would be much appreciated!

Thanks,
Russ

On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl norbert@hartl.name wrote:

You should not have to worry. The two possible culprits are the VOCache
which should be thread safe done by a semaphore. The other one is the
connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent
environment.

Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one

doubt, is voyage thread safe? or do I have to take care about using a Mutex
because multiple teapot instances can call it.

Thank you all!

--
Russ Whaley
whaley.russ@gmail.com

I am very interested in getting started with MongoDB. I’ve been using STON for full object model read/writes, but I’d like to take the next step into a more sustainable path (as my object models grow larger with time). I’m using Pharo v9 on MacOS. Where should I start? Voyage? Any pointers/tips would be much appreciated! Thanks, Russ On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name> wrote: > You should not have to worry. The two possible culprits are the VOCache > which should be thread safe done by a semaphore. The other one is the > connection to the database. Here the connection pool removes that problem. > > Hope that answers your question. I use it just as it is in a concurrent > environment. > > Norbert > > > > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre < > jmariaguirre@gmail.com>: > > > > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one > doubt, is voyage thread safe? or do I have to take care about using a Mutex > because multiple teapot instances can call it. > > Thank you all! > -- Russ Whaley whaley.russ@gmail.com
EL
Esteban Lorenzano
Thu, Jun 3, 2021 7:35 AM

hi,

you can start by voyage which is an Object-Document mapper or directly with the mongo driver if you do not want to use it :)
in any case, installing voyage will install also the driver and you can start there to see how it works ;)

Esteban
On Jun 3 2021, at 12:25 am, Russ Whaley whaley.russ@gmail.com wrote:

I am very interested in getting started with MongoDB. I’ve been using STON for full object model read/writes, but I’d like to take the next step into a more sustainable path (as my object models grow larger with time).

I’m using Pharo v9 on MacOS. Where should I start? Voyage? Any pointers/tips would be much appreciated!

Thanks,
Russ

On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name (mailto:norbert@hartl.name)> wrote:

You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent environment.
Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <jmariaguirre@gmail.com (mailto:jmariaguirre@gmail.com)>:

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it.
Thank you all!

hi, you can start by voyage which is an Object-Document mapper or directly with the mongo driver if you do not want to use it :) in any case, installing voyage will install also the driver and you can start there to see how it works ;) Esteban On Jun 3 2021, at 12:25 am, Russ Whaley <whaley.russ@gmail.com> wrote: > I am very interested in getting started with MongoDB. I’ve been using STON for full object model read/writes, but I’d like to take the next step into a more sustainable path (as my object models grow larger with time). > > I’m using Pharo v9 on MacOS. Where should I start? Voyage? Any pointers/tips would be much appreciated! > > Thanks, > Russ > > On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name (mailto:norbert@hartl.name)> wrote: > > You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem. > > > > Hope that answers your question. I use it just as it is in a concurrent environment. > > Norbert > > > > > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <jmariaguirre@gmail.com (mailto:jmariaguirre@gmail.com)>: > > > > > > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it. > > > Thank you all! > > > > -- > Russ Whaley > whaley.russ@gmail.com (mailto:whaley.russ@gmail.com) > > >
SD
Stéphane Ducasse
Thu, Jun 3, 2021 7:36 AM

Have a look at the Voyage booklet available on books.pharo.org http://books.pharo.org/ and let us know.

S

On 3 Jun 2021, at 00:25, Russ Whaley whaley.russ@gmail.com wrote:

I am very interested in getting started with MongoDB. I’ve been using STON for full object model read/writes, but I’d like to take the next step into a more sustainable path (as my object models grow larger with time).

I’m using Pharo v9 on MacOS. Where should I start?  Voyage?  Any pointers/tips would be much appreciated!

Thanks,
Russ

On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name mailto:norbert@hartl.name> wrote:
You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent environment.

Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <jmariaguirre@gmail.com mailto:jmariaguirre@gmail.com>:

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it.
Thank you all!


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Have a look at the Voyage booklet available on books.pharo.org <http://books.pharo.org/> and let us know. S > On 3 Jun 2021, at 00:25, Russ Whaley <whaley.russ@gmail.com> wrote: > > I am very interested in getting started with MongoDB. I’ve been using STON for full object model read/writes, but I’d like to take the next step into a more sustainable path (as my object models grow larger with time). > > I’m using Pharo v9 on MacOS. Where should I start? Voyage? Any pointers/tips would be much appreciated! > > Thanks, > Russ > > On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name <mailto:norbert@hartl.name>> wrote: > You should not have to worry. The two possible culprits are the VOCache which should be thread safe done by a semaphore. The other one is the connection to the database. Here the connection pool removes that problem. > > Hope that answers your question. I use it just as it is in a concurrent environment. > > Norbert > > > > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <jmariaguirre@gmail.com <mailto:jmariaguirre@gmail.com>>: > > > > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one doubt, is voyage thread safe? or do I have to take care about using a Mutex because multiple teapot instances can call it. > > Thank you all! > -- > Russ Whaley > whaley.russ@gmail.com <mailto:whaley.russ@gmail.com> -------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France
SM
Sabine Manaa
Thu, Jun 3, 2021 9:23 AM

Hi Russ,

there are also some videos at youtube:

https://youtu.be/sYFAwjpCFKA
https://youtu.be/1szVgKQm474

Note that there are some starting questions have been answered in the
mailing list:

http://forum.world.st/template/NamlServlet.jtp?macro=search_page&node=1294836&query=voyage&n=1294836

and in the databases section of the pharo group in discord.

regards
Sabine

Am Do., 3. Juni 2021 um 09:36 Uhr schrieb Stéphane Ducasse <
stephane.ducasse@inria.fr>:

Have a look at the Voyage booklet available on books.pharo.org and let us
know.

S

On 3 Jun 2021, at 00:25, Russ Whaley whaley.russ@gmail.com wrote:

I am very interested in getting started with MongoDB. I’ve been using STON
for full object model read/writes, but I’d like to take the next step into
a more sustainable path (as my object models grow larger with time).

I’m using Pharo v9 on MacOS. Where should I start?  Voyage?  Any
pointers/tips would be much appreciated!

Thanks,
Russ

On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl norbert@hartl.name wrote:

You should not have to worry. The two possible culprits are the VOCache
which should be thread safe done by a semaphore. The other one is the
connection to the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent
environment.

Norbert

Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <

Hello all, I'm developing a tepot+voyage(mongodb) web app and I have

one doubt, is voyage thread safe? or do I have to take care about using a
Mutex because multiple teapot instances can call it.

Thank you all!

--
Russ Whaley
whaley.russ@gmail.com


Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Hi Russ, there are also some videos at youtube: https://youtu.be/sYFAwjpCFKA https://youtu.be/1szVgKQm474 Note that there are some starting questions have been answered in the mailing list: http://forum.world.st/template/NamlServlet.jtp?macro=search_page&node=1294836&query=voyage&n=1294836 and in the databases section of the pharo group in discord. regards Sabine Am Do., 3. Juni 2021 um 09:36 Uhr schrieb Stéphane Ducasse < stephane.ducasse@inria.fr>: > Have a look at the Voyage booklet available on books.pharo.org and let us > know. > > S > > On 3 Jun 2021, at 00:25, Russ Whaley <whaley.russ@gmail.com> wrote: > > I am very interested in getting started with MongoDB. I’ve been using STON > for full object model read/writes, but I’d like to take the next step into > a more sustainable path (as my object models grow larger with time). > > I’m using Pharo v9 on MacOS. Where should I start? Voyage? Any > pointers/tips would be much appreciated! > > Thanks, > Russ > > On Tue, Jun 1, 2021 at 5:53 AM Norbert Hartl <norbert@hartl.name> wrote: > >> You should not have to worry. The two possible culprits are the VOCache >> which should be thread safe done by a semaphore. The other one is the >> connection to the database. Here the connection pool removes that problem. >> >> Hope that answers your question. I use it just as it is in a concurrent >> environment. >> >> Norbert >> >> >> > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre < >> jmariaguirre@gmail.com>: >> > >> > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have >> one doubt, is voyage thread safe? or do I have to take care about using a >> Mutex because multiple teapot instances can call it. >> > Thank you all! >> > -- > Russ Whaley > whaley.russ@gmail.com > > > -------------------------------------------- > Stéphane Ducasse > http://stephane.ducasse.free.fr / http://www.pharo.org > 03 59 35 87 52 > Assistant: Aurore Dalle > FAX 03 59 57 78 50 > TEL 03 59 35 86 16 > S. Ducasse - Inria > 40, avenue Halley, > Parc Scientifique de la Haute Borne, Bât.A, Park Plaza > Villeneuve d'Ascq 59650 > France > >