We will be looking into How to connect to TitanDB using Gremlin API in this tutorial. Interacting with TitanDB is bit different than other databases, since you can only use a WebSocket or HTTP Connection. First we will discuss on the challenges and explore a future proof way of interacting with TitanDB from Spark using Scala using Gremlin API. Then we will see how to Configure TitanDB and then use Play framework to connect to TitanDB over HTTP ( RESTful way ). We also may need to submit multiple queries together. we will learn how to combine queries in different ways.