<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://izara.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Standard_WebSocketTask_Per_Service</id>
	<title>Standard WebSocketTask Per Service - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://izara.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Standard_WebSocketTask_Per_Service"/>
	<link rel="alternate" type="text/html" href="https://izara.io/wiki/index.php?title=Standard_WebSocketTask_Per_Service&amp;action=history"/>
	<updated>2026-06-21T18:01:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://izara.io/wiki/index.php?title=Standard_WebSocketTask_Per_Service&amp;diff=1937&amp;oldid=prev</id>
		<title>Sven the Barbarian: Created page with &quot;= Overview =  If client begins a task on the backend and awaits that tasks completion we open a websocket connection so client can be notified when task is complete.  = Dynamo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://izara.io/wiki/index.php?title=Standard_WebSocketTask_Per_Service&amp;diff=1937&amp;oldid=prev"/>
		<updated>2022-09-21T13:43:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Overview =  If client begins a task on the backend and awaits that tasks completion we open a websocket connection so client can be notified when task is complete.  = Dynamo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
If client begins a task on the backend and awaits that tasks completion we open a websocket connection so client can be notified when task is complete.&lt;br /&gt;
&lt;br /&gt;
= DynamoDB structure =&lt;br /&gt;
&lt;br /&gt;
== WebSocketTask ==&lt;br /&gt;
&lt;br /&gt;
* all websocket tasks for one service can record the awaiting connection in a single table&lt;br /&gt;
* all connections awaiting a specific task to complete will share the same partition key&lt;br /&gt;
* sortKey is a list of all websocket connectionIds waiting this specific task, so can query by partition key to get all awaiting connections&lt;br /&gt;
&lt;br /&gt;
=== Fields ===&lt;br /&gt;
&lt;br /&gt;
; taskKey&lt;br /&gt;
: (partition key)&lt;br /&gt;
: {taskTag}_{taskId}&lt;br /&gt;
: taskTag: string that describes the task, eg: &amp;quot;processSortRequest&amp;quot;&lt;br /&gt;
: taskId: uniqueId of the task being performed, eg: sortResultId&lt;br /&gt;
; connectionid&lt;br /&gt;
: (sort key)&lt;br /&gt;
&lt;br /&gt;
= HdrWbs handlers =&lt;br /&gt;
&lt;br /&gt;
* request from the client to initiate the task uses a websocket (Wbs) handler to invoke the core function&lt;br /&gt;
* HdrWbs receives websocket routes connect, disconnect, and message&lt;br /&gt;
* connect: starts the connection, no logic required&lt;br /&gt;
* message: receives the request params to start the task, saves record into WebSocketTask table&lt;br /&gt;
* disconnect: client has the option of sending a disconnect message, this will remove the connection record from WebSocketTask table, so no need to process once complete&lt;/div&gt;</summary>
		<author><name>Sven the Barbarian</name></author>
	</entry>
</feed>