Test environments
Establishing a test environment involves setting up hardware and other infrastructure resources that are required by the testing activities. The test environment must be designed to emulate the production environment as closely as possible.
In a proof of concept or in early development, you might want to create a Java™ test client or use Insight Designer to submit events. Your final test environment must use your day-to-day message providers of your production environment to access the necessary data that is required to run the associated test cases. When the test environment is different from the production environment to a significant degree (typically, in terms of size or capacity), some testing can be planned in the production environment. However, if you do test in the production environment you must coordinate the testing closely. When the solution is successfully deployed to production, it is important to continuously monitor the actual performance against your projections.
Consider the following points to optimize your test and production environments.
Data formats
You can send and retrieve data in either Extensible Markup Language (XML) or JavaScript Object Notation (JSON). If you plan to exchange data and check values with RESTful web services, then JSON is a good fit. Twitter and IBM® Bluemix®, for example, store data as JSON objects, and all popular websites offer JSON as the data exchange format.
Data capacity
Consider how many physical hosts and processors are needed in your environment. How many runtime servers and partitions are needed to host your object maps, and how much data you plan to store on each server. The amount of data that is stored in the maps is one factor in determining the appropriate number of partitions. If the data is vital, synchronous replication might be the best option. If performance is a higher priority, asynchronous replication might be the correct choice. For more information, see Planning environment capacity.
Caching topologies
The caching topology that you implement depends on the requirements of your environment and your solution. For more information, see Strategies for persisting system data.
Connectivity
To receive and emit events from an Insight Server, use the connectivity tier (gateway) to route an inbound event and connect the event to the runtime grid. The inbound and outbound binding is defined in the solution connectivity definition (a .cdef file). Therefore, it is important that you know all of the sending and receiving endpoints, and the type of binding the messages require when you write the descriptor of your solution.
Global aggregation
A solution that uses global aggregates can require large amounts of memory and computer processing capacity. To determine your infrastructure requirements, you must consider many variables, including the extent of event processing that your solution uses and the frequency and complexity of your aggregations. You must also consider the interaction between events and global aggregates, and the size and configuration of your Insight Server cluster.