﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Martin,
  
Indexes in Raven are built on the background, and they will return stale results (with the appropriate notification) 
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment16</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment16</guid><pubDate>Mon, 17 May 2010 05:58:48 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Dokieboy ,
  
Raven actually returns 204 (No Content), that is a top on my part
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment15</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment15</guid><pubDate>Mon, 17 May 2010 05:57:57 GMT</pubDate></item><item><title>Martin Murphy commented on Raven Replication: Scenarios</title><description>Question about RavenDb.
  
  
Couchdb takes the approach that views are not indexed until the view is requested (in order to save cpu cycles).  Personally I disagree with this approach because because I would prefer that the view be ready for me so to speak.
  
  
Also views in couch do not pass stale results by default unless you pass the stale:"ok" param.  I would in the majority of cases prefer to have the stale results and then have the view index update async after the request.
  
  
I'd be really interested to hear what  approach are you taking with Raven and your thought process behind it?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment14</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment14</guid><pubDate>Mon, 17 May 2010 00:25:29 GMT</pubDate></item><item><title>Dokieboy commented on Raven Replication: Scenarios</title><description>Minor point. Should the DELETE scenario return a 200 (OK) instead of a 201 (Created)?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment13</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment13</guid><pubDate>Sun, 16 May 2010 23:17:31 GMT</pubDate></item><item><title>Andrew commented on Raven Replication: Scenarios</title><description>I'd have to agree there, I'd prefer (and expect) indexes to be replicated (their definitions at least, let each server calculate the data though).
  
  
Simpler administration, and its expected behavior.
  
  
Even on a backup server, I'd opt to have it replicated - it doesn't matter if it is or isn't surely.
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment12</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment12</guid><pubDate>Sun, 16 May 2010 23:17:26 GMT</pubDate></item><item><title>Jes&amp;#250;s L&amp;#243;pez commented on Raven Replication: Scenarios</title><description>Ayende,
  
  
I see one benefit in the high availability scenario: simpler administration. Since you need both machines identical to serve the same requests, if automatic replication of indices is not in place, you need to repeat all index creations and modifications in all servers manually.
  
  
I'm not saying that all replicated servers must have the same indexes, but I think having the option to replicate index definitions to other server would be nice.
  
  
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment11</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment11</guid><pubDate>Sun, 16 May 2010 21:07:52 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Jesus,
  
Because it remove the ability to have different indexes on different machines.
  
It complicate things because we now have to track whatever an index was changed or not.
  
It means that we need to track _when_ an index was changed, in case the user wanted to reforce an index re-fresh.
  
  
I don't see the benefit
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment10</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment10</guid><pubDate>Sun, 16 May 2010 20:31:40 GMT</pubDate></item><item><title>Jes&amp;#250;s L&amp;#243;pez commented on Raven Replication: Scenarios</title><description>Why not to replicate just index definitions?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment9</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment9</guid><pubDate>Sun, 16 May 2010 20:10:22 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>The expectation is that you'll setup the indexes on all machines as part of your initial setup.
  
Raven's indexes are the closest thing to a schema that it has. It doesn't make sense to replicate the indexes, because you might not want to pay the indexing cost on a backup only copy, or might want to have different projections.
  
Moving the index data is too costly when we can just recalcute it
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment8</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment8</guid><pubDate>Sun, 16 May 2010 15:22:51 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Ben,
  
That helps, yes, although I was thinking about stuff lower down the stack.
  
With the master / master approach, don't you find that you get conflicts?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment7</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment7</guid><pubDate>Sun, 16 May 2010 15:19:42 GMT</pubDate></item><item><title>Ben Hall commented on Raven Replication: Scenarios</title><description>With CouchDB, I've been looking at using replication in two ways.
  
  
1) Using HAProxy as a load balancer, then using CouchDB to continuously replicate between the two loads in a master-master approach. This in affect creates a database cluster in a very cost effective fashion - try doing that in SQL Server...
  
  
2) Similar fashion to above by using HAProxy, but in a master-child approach. Master holds all the data, then each child holds a subset done via the Replication Filters. Thinking about using this for geo-location of catalog data between our different stores... Having everything geo-located would be expensive, having just the subset would solve that problem. If the node goes down, then HAProxy restores back to the master, or more ideally another node which holds the data. 
  
  
I've been meaning to write a blog post about it.... 
  
  
  
These the kind of scenarios you are looking for? 
  
  
Ben
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment6</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment6</guid><pubDate>Sun, 16 May 2010 14:57:29 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Robert,
  
No, indexes aren't replicated. This is because it is easier to just compute them than to send them on the wire
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment5</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment5</guid><pubDate>Sun, 16 May 2010 14:53:27 GMT</pubDate></item><item><title>Robert The Grey commented on Raven Replication: Scenarios</title><description>Have you tested replication of indexes as well? Are they stores as data?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment4</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment4</guid><pubDate>Sun, 16 May 2010 14:47:49 GMT</pubDate></item><item><title>Rafal commented on Raven Replication: Scenarios</title><description>Are you sure you have defeated your stupidity? I'm trying for thirty years with little effect...
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment3</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment3</guid><pubDate>Sun, 16 May 2010 14:39:37 GMT</pubDate></item><item><title>Ayende Rahien commented on Raven Replication: Scenarios</title><description>Andrew,
  
That is pretty meaningless, since Raven is transactional, and the replication system only operation on committed data.
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment2</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment2</guid><pubDate>Sun, 16 May 2010 14:35:43 GMT</pubDate></item><item><title>Andrew commented on Raven Replication: Scenarios</title><description>I'd probably test the usual 'bank transfer' scenario, ensuring transactions are atomic across replication too?
  
  
What about concurrent transactions, does replication update correctly there?
</description><link>http://ayende.com/4504/raven-replication-scenarios#comment1</link><guid>http://ayende.com/4504/raven-replication-scenarios#comment1</guid><pubDate>Sun, 16 May 2010 14:24:22 GMT</pubDate></item></channel></rss>