Patent ID: 7254634

Claim:
A method of managing user session state during execution of platform-independent code in a content delivery network (CDN) deployed and operated by a content delivery network service provider (CDNSP), the content delivery network comprising a set of edge servers organized into distinct and separate regions and a DNS-based request handling mechanism for mapping client DNS queries to the edge servers, at least some of the edge servers provisioned with a runtime container and application server code for executing the platform-independent code, comprising: at a first edge server provisioned with the runtime container and application server code and located in a first CDN region, establishing and maintaining a user session state in association with the execution of the platform-independent code at the first edge server; and migrating the user session state to a second edge server provisioned with the runtime container and application server code, the second edge server being located in a second CDN region geographically distinct from the first CDN region; wherein, as a result of the migrating step, the user session state is available to the platform-independent code on the second edge server if the CDN DNS-based request handling mechanism maps a given DNS query associated with the execution of the platform-independent code to the second edge server.