Skip to main content

Posts

CTI with Node + Redis

Summary In this article I'll be discussing a way to implement call data passing between disparate telephony systems, i.e., Computer Telephony Integration (CTI).  The techniques I employ in this article ( DNIS pooling, database storage of call data, etc) are nothing groundbreaking.  In fact, these techniques are as old as the hills (well, maybe not that old).  What will be new here is the use of current software architectures such as REST  with highly-efficient run-time environments such as Node.js and Redis  to realize an open data integration between 3rd party systems. This article is the culmination of a series I've written on this topic.  In Part 1,  REST calls from Genesys Routing Strategies , I discussed how to make REST web service calls from one particular vendor's CTI system ( Genesys ).  In Part 2, VXML and REST Web Services , I discussed REST web service execution from VXML applications. I'll be leveraging informa...

Apache Cassandra Start-up Problem - UseCondCardMark

Problem You receive the error below when attempting to start up Cassandra Unrecognized VM option 'UseCondCardMark' Diagnosis The issue is that JVM option is for the server JVM, only.  You're likely attempting to start Cassandra with the 'client' JVM. Solution Add the '-server' option to the JVM_OPTS variable that Cassandra utilizes.  That shell variable is build up in the conf/cassandra-env.sh file.  Below I've edited that file and added the '-server' option as the first option to JVM_OPTS. # Here we create the arguments that will get passed to the jvm when # starting cassandra. JVM_OPTS="$JVM_OPTS -server"

Node vs. Java - Web Service Performance

Summary I recently did some comparative testing of web service implementations for a simple in-memory cache. I built functionally equivalent interfaces in Java ( REST + SOAP ) and Node.js (REST only) for the cache.  As expected, the Node implementation outperformed the Java variants significantly (>100% faster response times). Cache Implementation Figure 1 depicts the high-level structure of this cache application.  The cache supports inserts, fetches, and deletes of key/value pairs. Figure 1 Figure 2 depicts a bit more detail on the physical layout of the application. In the cases of the REST variants for Java and Node, cache operations are implemented as HTTP verbs (Insert = PUT, Fetch = GET, Remove = DELETE).  Stale entries are cleared from the cache using timeouts with Node and scheduled threads in Java.  Additionally, cache redundancy (loose coherence) is supported simply by utilizing REST calls between the server peers (PUT'...

PowerShell: Equivalent to UNIX find/grep

Product: Windows PowerShell I was trying to find out the PowerShell command that equivalent to following UNIX command to search through all files for a particular text (or regular expression) find . | grep -i "family_picture" The PowerShell equivalent is Get-ChildItem -recurse | select-string -pattern "family_picture" Default is not case sensitive, so no need to map "grep -i" parameter. If needed case sensitive, then it will be Get-ChildItem -recurse | select-string -pattern "family_picture" -casesensitive