PreAuthenticate and UnsafeAuthenticatedConnectionSharing

235 views
Skip to first unread message

Chris Marisic

unread,
May 16, 2012, 12:15:29 PM5/16/12
to rav...@googlegroups.com
When using RavenDB to be accessed only in Server to Server communication (MVC web app mediates all access to RavenDB) what are the optimal settings for

            store.JsonRequestFactory.ConfigureRequest += (sender, e) =>
                                                             {
                                                                 var httpWebRequest = ((HttpWebRequest) e.Request);
                                                                 httpWebRequest.UnsafeAuthenticatedConnectionSharing = ?;
                                                                 httpWebRequest.PreAuthenticate = ?;
                                                             };


Itamar Syn-Hershko

unread,
May 16, 2012, 3:36:34 PM5/16/12
to rav...@googlegroups.com
Is the RavenDB server local to the one with the MVC app?

Oren Eini (Ayende Rahien)

unread,
May 16, 2012, 7:57:20 PM5/16/12
to rav...@googlegroups.com
You can try setting both of them to true, that should help performance some.

Chris Marisic

unread,
May 17, 2012, 8:28:07 AM5/17/12
to rav...@googlegroups.com
The RavenDB server has affinity only to the MVC app, no other access points. The server might reside on the same machine, or it might reside on a seperate machine in the same data center.
Reply all
Reply to author
Forward
0 new messages