Sandbox (software development) explained

A sandbox is a testing environment that isolates untested code changes and outright experimentation from the production environment or repository[1] in the context of software development, including web development, automation, revision control, configuration management (see also change management), and patch management.

Sandboxing protects "live" servers and their data, vetted source code distributions, and other collections of code, data and/or content, proprietary or public, from changes that could be damaging to a mission-critical system or which could simply be difficult to revert, regardless of the intent of the author of those changes. Sandboxes replicate at least the minimal functionality needed to accurately test the programs or other code under development (e.g. usage of the same environment variables as, or access to an identical database to that used by, the stable prior implementation intended to be modified; there are many other possibilities, as the specific functionality needs vary widely with the nature of the code and the application[s] for which it is intended).

The concept of sandboxing is built into revision control software such as Git, CVS and Subversion (SVN), in which developers "check out" a copy of the source code tree, or a branch thereof, to examine and work on. After the developer has fully tested the code changes in their own sandbox, the changes would be checked back into and merged with the repository and thereby made available to other developers or end users of the software.[2]

By further analogy, the term "sandbox" can also be applied in computing and networking to other temporary or indefinite isolation areas, such as security sandboxes and search engine sandboxes (both of which have highly specific meanings), that prevent incoming data from affecting a "live" system (or aspects thereof) unless/until defined requirements or criteria have been met.

Sandboxing (see also 'soft launching') is often considered a best practice when making any changes to a system, regardless of whether that change is considered 'development', a modification of configuration state, or updating the system.[3]

In web services

The term sandbox is commonly used for the development of web services to refer to a mirrored production environment for use by external developers. Typically, a third-party developer will develop and create an application that will use a web service from the sandbox, which is used to allow a third-party team to validate their code before migrating it to the production environment. Microsoft,[4] Google, Amazon,[5] Salesforce,[6] PayPal,[7] eBay,[8] and Yahoo,[9] among others, provide such services.

In wikis

Wikis also typically employ a shared sandbox model of testing, though it is intended principally for learning and outright experimentation with features rather than for testing of alterations to existing content (the wiki analog of source code). An edit preview mode is usually used instead to test specific changes made to the texts or layout of wiki pages.

See also

Notes and References

  1. Web site: Sandbox . TechTarget . 15 July 2024.
  2. Vivek Venugopalan, "Developer Sandbox" chapter 4, CVS Best Practices, The Linux Documentation Project, 2005.
  3. Web site: What Is Patch Management? . 15 July 2024.
  4. Web site: Microsoft UDDI Business Registry (UBR) node . dead . https://web.archive.org/web/20051107090936/http://test.uddi.microsoft.com/default.aspx . 2005-11-07 . 27 July 2012.
  5. Web site: Amazon Mechanical Turk Developer Sandbox . 27 July 2012.
  6. Web site: Salesforce Sandboxes . salesforce.com . 29 August 2016.
  7. Web site: PayPal Sandbox User Guide . paypal.com . dead . 27 July 2012 . https://web.archive.org/web/20070128140333/http://developer.paypal.com/en_US/pdf/PP_Sandbox_UserGuide.pdf . 28 January 2007 .
  8. Web site: eBay Developer's Sandbox . ebay.com . 27 July 2012.
  9. Web site: Enterprise Web Services: Sandbox . yahoo.com . dead . https://web.archive.org/web/20080119195143/http://searchmarketing.yahoo.com/developer/docs/V2/sandbox/index.php . 2008-01-19 . 27 July 2012 .