Skip to content

Commit 883fa77

Browse files
committed
897352: Adding changes in collaborative editing
1 parent dcd4798 commit 883fa77

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

ej2-asp-core-mvc/document-editor/collaborative-editing/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ To support collaborative editing, it's crucial to have a backing system that tem
3232
Using the distributed cache or database all the editing operations are queued in order and conflict resolution is performed using `Operational Transformation` Algorithm.
3333

3434
> *Recommendation* - If you expect average `http` requests per second of your live application as 50 or below, then the database can provide reliable a backing system for operation queue. If you expect average requests per second of your live application as above 50, then the distributed cache is highly recommended backing system.
35+
3536
> Tips to calculate the average requests per second of your application:
3637
Assume the editor in your live application is actively used by 1000 users and each user's edit can trigger 2 to 5 requests per second. The total requests per second of your applications will be around 2000 to 5000. In this case, you can finalize a configuration to support around 5000 average requests per second.
3738

ej2-asp-core-mvc/document-editor/collaborative-editing/using-redis-cache-asp-net.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public async Task<ActionInfo> UpdateAction([FromBody] ActionInfo param)
321321
{
322322
try
323323
{
324-
ActionInfo modifiedAction = AddOperationsToTable(param);
324+
ActionInfo modifiedAction = AddOperationsToCache(param);
325325
//After transformation broadcast changes to all users in the gropu
326326
await _hubContext.Clients.Group(param.RoomName).SendAsync("dataReceived", "action", modifiedAction);
327327
return modifiedAction;
@@ -332,7 +332,7 @@ public async Task<ActionInfo> UpdateAction([FromBody] ActionInfo param)
332332
}
333333
}
334334

335-
private ActionInfo AddOperationsToTable(ActionInfo action)
335+
private ActionInfo AddOperationsToCache(ActionInfo action)
336336
{
337337
int clientVersion = action.Version;
338338
string insertScript = "-------"

ej2-asp-core-toc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@
900900
<li><a href="/ej2-asp-core/document-editor/export">Export</a></li>
901901
<li><a href="/ej2-asp-core/document-editor/collaborative-editing/overview">Collaborative Editing</a>
902902
<ul>
903-
<li><a href="/ej2-asp-core/document-editor/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP .NET Core</a></li>
904-
<li><a href="/ej2-asp-core/document-editor/collaborative-editing/using-dot-net">Using Database in ASP .NET Core</a></li>
903+
<li><a href="/ej2-asp-core/document-editor/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP.NET Core</a></li>
904+
<li><a href="/ej2-asp-core/document-editor/collaborative-editing/using-dot-net">Using Database in ASP.NET Core</a></li>
905905
</ul>
906906
</li>
907907
<li><a href="/ej2-asp-core/document-editor/image">Images</a></li>

ej2-asp-mvc-toc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@
849849
<li><a href="/ej2-asp-mvc/document-editor/export">Export</a></li>
850850
<li><a href="/ej2-asp-mvc/document-editor/collaborative-editing/overview">Collaborative Editing</a>
851851
<ul>
852-
<li><a href="/ej2-asp-mvc/document-editor/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP .NET MVC</a></li>
853-
<li><a href="/ej2-asp-mvc/document-editor/collaborative-editing/using-dot-net">Using Database in ASP .NET MVC</a></li>
852+
<li><a href="/ej2-asp-mvc/document-editor/collaborative-editing/using-redis-cache-asp-net">Using Redis in ASP.NET MVC</a></li>
853+
<li><a href="/ej2-asp-mvc/document-editor/collaborative-editing/using-dot-net">Using Database in ASP.NET MVC</a></li>
854854
</ul>
855855
</li>
856856
<li><a href="/ej2-asp-mvc/document-editor/image">Images</a></li>

0 commit comments

Comments
 (0)