Skip to main content

Posts

Showing posts with the label Java

Java Vs Golang

Ruby on Rails has an amazing set of features that has aided Freshworks in delivering various product enhancements at a rapid pace. Today, the biggest challenge that we face is scaling the Ruby-based services and keeping up with the exponentially growing customer base. It becomes essential to find an alternative language with good performance that will continue to help us develop features quickly. At this point, while we are trying to break our monolithic code and extract microservices out of it, it feels apt to start considering different alternative languages. Requirements The following are the considerations that we had for selecting the language Comparing use cases RESTful APIs. (Preferably with options to generate server code from Swagger spec) Consuming messages from one of the queues/streams like Kafka, SQS Working with following resources MySQL Consuming and Producing messages from/to Kafka at high volume Consuming and Producing messages from/to SQS Redis Dynam...

Java Vs Nodejs

In the history of computing, 1995 was a crazy time. First Java appeared, then close on its heels came JavaScript. The names made them seem like conjoined twins newly detached, but they couldn't be more different. One of them compiled and statically typed; the other interpreted and dynamically typed. That's only the beginning of the technical differences between these two wildly distinct languages that have since shifted onto a collision course of sorts, thanks to Node.js. If you’re old enough to have been around back then, you might remember Java’s early, epic peak. It left the labs, and its hype meter pinned. Everyone saw it as a revolution that would stop at nothing less than a total takeover of computing. That prediction ended up being  only partially correct . Today, Java dominates Android phones, enterprise computing, and some embedded worlds like Blu-ray disks. [ Get the low-down on the best JavaScript code tools with our review of JavaScript editors  and  JavaScrip...

ORM Overview

What is JDBC? JDBC stands for  Java Database Connectivity  and provides a set of Java API for accessing the relational databases from Java program. These Java APIs enables Java programs to execute SQL statements and interact with any SQL compliant database. JDBC provides a flexible architecture to write a database independent application that can run on different platforms and interact with different DBMS without any modification. Pros and Cons of JDBC Pros of JDBC Cons of JDBC Clean and simple SQL processing Good performance with large data Very good for small applications Simple syntax so easy to learn Complex if it is used in large projects Large programming overhead No encapsulation Hard to implement MVC concept Query is DBMS specific Why Object Relational Mapping (ORM)? When we work with an object-oriented systems, there's a mismatch between the object model and the relational database. RDBMSs represent data in a tabular format whereas object-oriented languages, such as J...