Asynchronous communication services such as email, text messaging, and comparable ones are a big part of daily lives facilitating exchange of information for personal, business, and other purposes. Asynchronous communication services typically include one or more servers managing the communications over one or more networks, where users access the services through thick or thin clients. Thick clients are locally installed client applications that perform a majority of the functionality locally synchronizing with a server periodically or on-demand. Thin clients are typically generic applications such as web browsers that enable access to communication services through a user interface controlled by a server, where a majority of the functionality is server-based.
When network connectivity exists, thick or thin clients provide a seamless user experience. On the other hand, if network connectivity is lost, a client application may still provide some of the functionality to a user, but not be able to synchronize with the server. Thus, some of the communication services may be interrupted. For example, email messages may not be sent or retrieved, calendar items may not be updated, etc. In some implementations, a client application may act normal and perform the functions even when network connectivity is absent and replay user actions once connectivity is restored. The network interruption may not always be for a short period, however. If the interruption last a relatively long period (e.g., hours or days), replaying the user action upon restoration of connectivity, or an error in the replay of a user action upon restoration of connectivity, may lead to user confusion. For example, a scheduled appointment may be provided to the user after its scheduled time is past. Some conventional systems alert the user every time there is an interruption, which may degrade user experience. Other systems simply do not report any of the failures, which could result in worse situations such as the user losing confidence in the communication system.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to exclusively identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter.
Embodiments are directed to a set of workflows for supporting proper user notifications after an action is taken by the user in conjunction with an asynchronous communication service. Timing and/or type of the notifications or an action to be taken by the service may be determined based on one or more of a nature of the user action that failed, a time elapsed since the action was taken, multi-action dependencies, device types, and similar characteristics enhancing user experience and reducing confusion.
These and other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that both the foregoing general description and the following detailed description are explanatory and do not restrict aspects as claimed.
As briefly described above, proper user notifications may be provided after an action is taken by the user in conjunction with an asynchronous communication service, and in particular when that action fails to replay correctly to the server. Notifications and tasks to be performed in response to user actions when network connectivity is interrupted may be determined based on predefined criteria and at least a portion of created/modified data cached locally. Timing and/or type of the notifications or an action to be taken by the service may be determined based on one or more of a nature of the user action that failed, a time elapsed since the action was taken, multi-action dependencies, device types, and similar characteristics enhancing user experience and reducing confusion.
In the following detailed description, references are made to the accompanying drawings that form a part hereof, and in which are shown by way of illustrations specific embodiments or examples. These aspects may be combined, other aspects may be utilized, and structural changes may be made without departing from the spirit or scope of the present disclosure. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims and their equivalents.
While the embodiments will be described in the general context of program modules that execute in conjunction with an application program that runs on an operating system on a computing device, those skilled in the art will recognize that aspects may also be implemented in combination with other program modules.
Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that embodiments may be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and comparable computing devices. Embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
Embodiments may be implemented as a computer-implemented process (method), a computing system, or as an article of manufacture, such as a computer program product or computer readable media. The computer program product may be a computer storage medium readable by a computer system and encoding a computer program that comprises instructions for causing a computer or computing system to perform example process(es). The computer-readable storage medium can for example be implemented via one or more of a volatile computer memory, a non-volatile memory, a hard drive, a flash drive, a floppy disk, or a compact disk, and comparable media.
Throughout this specification, the term “platform” may be a combination of software and hardware components for providing asynchronous communication services such as email or text messaging. Examples of platforms include, but are not limited to, a hosted service executed over a plurality of servers, an application executed on a single computing device, and comparable systems. The term “server” generally refers to a computing device executing one or more software programs typically in a networked environment. However, a server may also be implemented as a virtual server (software programs) executed on one or more computing devices viewed as a server on the network. More detail on these technologies and example operations is provided below. As used herein, the term “action” refers to user interaction with a communication application such as selecting/activating a user interface element or providing input through the user interface. The term “task” refers to operations performed by the system in response to “actions” or other events in providing communication services to the users.
Client applications 104, 106 may be thick of thin clients. Thick clients are locally installed client applications that perform a majority of the functionality locally synchronizing with a server periodically or on-demand. Thin clients are typically generic applications such as web browsers that enable access to communication services through a user interface controlled by a server, where a majority of the functionality is server-based. In either case, functionality of the client applications is dependent on connectivity to the communication service 102.
A client application may be disconnected from network(s) 110 when providing email, calendar or contacts features of an email exchange service, for example, particularly on a portable device. The actions that a user takes may be replayed once connectivity is restored without user intervention. The disconnect period may, however, be seconds, minutes, hours or days. If an action fails to replay wholly or partially, the challenge is whether and how to indicate the replay failure to the user.
In a system according to embodiments, failure notifications may be provided and tasks associated with the failed actions performed based on a number of predefined criteria such as a type or nature of the failure, a time of failure, a type of application or device, etc. The actions may include, but are not limited to, sending/deleting/modifying a message, creating/deleting/modifying a calendar or contact item, or creating/deleting/modifying properties for an item. Thus, in response to detecting a failure to replay an action, a system according to embodiments may apply one or more criteria and perform the tasks including providing a notification (type, timing, format of notification). Some of the created/modified data may also be cached locally based on the criteria.
According to some embodiments, if a user chooses the ability to work offline in their client application, the application may create a local data store (client cache 222) to store items associated with the application, for example, email, calendar and contacts in an email application to support functionality while the application is disconnected. When the application is connected, the user interface may read and write user actions from and to the local data store (for both performance and to keep it up-to-date), and write actions to both the local data store and to the server (communication service 220) to maintain synchronization. For any actions that may be too resource-intensive to be written locally, a data synchronization component may copy incremental server changes to the local data store directly.
Other major functional components in a system according to embodiments may include client controls 214 managing elements such as listview, textbox, editor, etc.; client view 212, which is a collection of templates that are a composition of primitive controls; client view model 216, which includes the application logic; and client model 218, which includes data manager, calendars, folders, contacts, etc.
As mentioned above, client view model 216 may include user interface specific application logic and maintain application state. According to some embodiments, client view model 216 may have no knowledge of the user interface and the states may be exposed through properties and command bindings. Responsibility of responding to a user action with changes in client model 218 may belong in this layer.
Client view 212 may bind to user experience interface and act like a reflection of client view model 216 in the user interface. Data binding is the main mechanism for communication between client view 212 and lower layers. Client view 212, which is a collection of templates comprising primitive controls may have a 1:1 mapping to client view model 216. The configuration employing data binding between client view 212 and client view model 216 may enable creation of the entire view for the view model using templates. In a system as the one shown in diagram 200, notifications 226 may flow from communication service 220 toward client controls 214, while event flow from client controls 214 toward communication service 220 or client cache 222.
When a communication application is connected, the user interface may read and write user actions from and to the local data store (client store proxy 336) and write actions to both the local data store and to the server to maintain synchronization. When the application loses connectivity, actions 334 may be committed locally until connectivity is restored. To have these actions reflected on the server once connectivity is restored, the actions 334 may be stored in a queue (queued proxy 344) in a local web database table or native device database table at the same time that they are committed locally. In some embodiments, an aggregated proxy 340 may be employed between client store proxy 336 and the server's online proxy 342. The flow may be directly from aggregated proxy 340 to online proxy 342 or via queued proxy 344. Whenever the device regains connectivity (as determined by a separate process, such as a connectivity manager), the actions may be played back to the server (to online proxy 342).
If the server is not able to process the action, it may return a failure response. The failure response may be passed to the response processor 330 in the action manager architecture. The response processor 330 may provide information to enable the user interface code to choose if and how to surface the failure to the user based on a number of factors. Data about each of these factors may be returned with the failure response to the response processor. The factors may include, but are not limited to, a type of failure, whether other actions depend on this action's success, time since action was taken, a device on which the action was taken, a user profile and/or usage, a communication method (e.g., email vs. text message exchange), or a nature of the action. For example, creation/modification/deletion of a calendar item that involves a user's own time may be less critical than when the calendar item involves other users (e.g., a meeting) as well. Short term disconnects may be transparent to a user (e.g., for calendar or contact item related actions), while long term disconnects may have significance in terms of planning, communication, analysis, etc.
In some example implementations, the type of failure may include creation of high investment custom content, such as a new message or meeting request, creation of low investment custom content, such as adding or changing the phone number on a contact, changing item-wide properties, such as deleting a message or moving to a different folder, and changing single properties within an item, such as setting a flag or marking the item as read.
The dependency of other actions on a particular action's success may be, for example, a message having a recipient whose address does not exist in the organization. Send may succeed, but address name resolution for that single recipient may fail. In case of single failures on which other actions are dependent a rollback of all related actions may be performed or other actions may be allowed to proceed and the failure of only this action returned. Thus, response processor 330 can invoke code to react accordingly to a success or failure response, and dependent on success or failure responses of related or dependent action, from the server whenever connectivity is restored, at which time the action may be replayed, re-queued, or purged (ignored).
User interface 452 is the top layer of the system enabling interaction with users and including view and view model objects. Actions 458 such as reply to a message, change an item property, delete a property, read a message, etc. received from the user interface layer 452 may be used for user interface data bound objects 456 that feed back to the user interface layer 452. Actions 458 and data bound objects 456 are in model layer 454 (client-side).
On the server side, a persisted data access layer 460 may include action dispatcher 464 and sync manager 462. Action dispatcher 464 may receive the actions (e.g., using an action request call). Actions may be provided to and tasks in response to the actions (for the user interface) received from online and offline business logic and data stores. Sync manager 462 may facilitate synchronization of actions and failure responses between online and offline states.
Online business logic 468 may include folders, messages, attachments, calendars, contacts, and similar items associated with the communication service. Online business logic 468 may also include the views for those items, as well as folder synchronization logic, notifications logic, and property schema logic. Online store 470 may store folders, messages, and attachments as well as views for those. Online store 470 may further include interface synchronization, the notifications, and property schema. A physical layer abstraction for 472 for the online business logic may include indices, tables, and columns, and enable interaction with databases such as relational databases or others.
Offline business logic and store combination 466 may include items feeding into folders, messages, attachments, calendars, contacts, and similar ones, as well as views for the same. Offline business logic and store combination 466 may further include notifications, views, and persist-and-upload actions. Physical layer abstraction for 474 for the offline business logic may also include indices, tables, and columns, and enable interaction with databases such as web relational databases, indexed databases, or others.
The example systems in
In a system according to embodiments, user experience may be enhanced through a number of features according to some embodiments. For example, the code to render the user experience may decide if and how to surface the errors to the user based on evaluation of the factors discussed above and returned to a response processor by the action manager architecture. The user experience may choose one of the approaches below based on the data provided by the response processor, in order from most to least invasive and attention-grabbing (which may correspond to most to least critical failures, respectively).
Notifications may be surfaced through sounds or vibration similar to the user experience when receiving a text message or calendar notification (in devices which support surfacing this type of notification). Information may be displayed on the main screen of the device or on a main view of a web-based application user interface (e.g., a web-based email application). The information may also be detailed in a message added to the user's inbox.
Example user interface 500 presents a “Drafts” folder of an email application. A user interface element 582 enables a user to return to a listing of all folders. A brief status update 584 indicates to the user the last time the local version was updated. As discussed above, a visual notification 586 may emphasize to the user a nature of the failure. The visual notification 586 may be accompanied by an audio notification 588 such as a specific sound. In other embodiments, more detailed information about the failure such as a communication associated with the failure, a time of the failure, user options to mitigate the failure, etc. may also be displayed depending on user interface configuration, available screen space, device type, etc.
Client applications executed on any of the client devices 611-613 may facilitate communications via application(s) executed by servers 616, or on individual server 616. A communication application executed on one of the servers may facilitate providing failure notifications to users and performance of appropriate tasks based on predefined criteria as discussed above. The application may retrieve relevant data from data store(s) 619 directly or through database server 618, and provide requested services to the user(s) through client devices 611-613.
Network(s) 610 may comprise any topology of servers, clients, Internet service providers, and communication media. A system according to embodiments may have a static or dynamic topology. Network(s) 610 may include secure networks such as an enterprise network, an unsecure network such as a wireless open network, or the Internet. Network(s) 610 may also coordinate communication over other networks such as Public Switched Telephone Network (PSTN) or cellular networks. Furthermore, network(s) 610 may include short range wireless networks such as Bluetooth or similar ones. Network(s) 610 provide communication between the nodes described herein. By way of example, and not limitation, network(s) 610 may include wireless media such as acoustic, RF, infrared and other wireless media.
Many other configurations of computing devices, applications, data sources, and data distribution systems may be employed to implement a platform for providing communication services with failure notifications due to network connectivity interruption. Furthermore, the networked environments discussed in
When communication application 724 loses connectivity, actions may be committed locally until connectivity is restored. Whenever the client device regains connectivity, the actions may be played back to a server. If the server is not able to process the action, it may return a failure response. Sync manager module 726 may determine how to surface the failure to the user based on a number of factors. The factors may include, but are not limited to, a type of failure, whether other actions depend on this action's success, time since action was taken, or device on which the action was taken. This basic configuration is illustrated in
Computing device 700 may have additional features or functionality. For example, the computing device 700 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
Computing device 700 may also contain communication connections 716 that allow the device to communicate with other devices 718, such as over a wired or wireless network in a distributed computing environment, a satellite link, a cellular link, a short range network, and comparable mechanisms. Other devices 718 may include computer device(s) that execute communication applications, web servers, and comparable devices. Communication connection(s) 716 is one example of communication media. Communication media can include therein computer readable instructions, data structures, program modules, or other data. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
Example embodiments also include methods. These methods can be implemented in any number of ways, including the structures described in this document. One such way is by machine operations, of devices of the type described in this document.
Another optional way is for one or more of the individual operations of the methods to be performed in conjunction with one or more human operators performing some. These human operators need not be collocated with each other, but each can be only with a machine that performs a portion of the program.
Process 800 begins with operation 810, where a user action such as creation/deletion/modification of an item (message, appointment, contact, property) may be detected through the interaction of a user with the user interface. The user interface may be complemented by view and view model components interacting through data binding in detecting actions and providing responses to the user.
At optional operation 820, the actions may be provided to a server and stored at a local cache as backup in case of network connectivity loss. When the application loses connectivity, actions may be committed locally until connectivity is restored. To have these actions reflected on the server once connectivity is restored, the actions may be stored in a queue in a local web database table or native device database table at the same time that they are committed locally
At operation 830, a response processor may determine when and how to surface a failure response to the user (through the user interface) based on one or more factors. If the server is not able to process the action, it may return a failure response. The failure response may be passed to the response processor in the action manager architecture. The response processor may provide information to enable the user interface code to choose if and how to surface the failure to the user based on a number of factors. Data about each of these factors may be returned with the failure response to the response processor. The factors may include, but are not limited to, a type of failure, whether other actions depend on this action's success, time since action was taken, or device on which the action was taken.
At optional operation 840, the actions may be replayed upon restoration of network connectivity. When the application is connected, the user interface may read and write user actions from and to the local data store (for both performance and to keep it up-to-date), and write actions to both the local data store and to the server to maintain synchronization.
The operations included in process 800 are for illustration purposes. A process for communicating unexpected collaborative server responses upon reconnect may be implemented by similar processes with fewer or additional steps, as well as in different order of operations using the principles described herein.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the embodiments. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims and embodiments.