Skip to main content

Posts

HCL part2

 1)Sonar qube bugs category 2)Type vs interface 3)groupBy with count: db. items . aggregate ([ { $group : { _id : "$category" , count : { $sum : 1 } }} ]) 4)factorial and fiboncaci series 5)

Persitence

 1)Inheritence: Prototype inheritance is a core concept in JavaScript that allows objects to inherit properties and methods from other objects. Every JavaScript object has a prototype property, which refers to another object. When a property or method is accessed on an object, if it doesn't exist on that object, JavaScript looks up the prototype chain to find it. function Student(name, grade) {     Person.call(this, name);     this.grade = grade; } Student.prototype = Object.create(Person.prototype); Student.prototype.constructor = Student; Student.prototype.displayGrade = function() {     return this.name + " is in grade " + this.grade; }; let student1 = new Student("Bob", 10); console.log(student1.greet()); // Output: "Hello, my name is Bob" console.log(student1.displayGrade()); // Output: "Bob is in grade 10" 2)thread pool: Thread Pool : The thread pool in Node.js consists of a pool of worker threads (implemented using libuv). These worker...

Globant part 2

 1)REbase and cherrypick 2)In mongodb _id if string than aggreagtion works or not? __v version can we change. size of id 3)isNaN-> valid ip address questions 4)dblookup in mongodb 5)ACID properties in sql 6)let x;  loop{ var x=100; } is allowed 7)tdd vs behavioural  8)Licenceing of npm package. Things to check for package selction 9)

GS lab

 1)When to use kafka: Use Kafka for real-time data streaming, message queuing, and event-driven architectures. Key features of Kafka include: Distributed messaging system High throughput and low latency Fault-tolerance and scalability Persistent storage Stream processing capabilities Integration with various programming languages and frameworks message queuing refers to the process of sending, storing, and managing messages in a queue, where messages are temporarily held until they are processed by a consumer. In Kafka, message queuing involves publishing messages to topics (queues) and allowing multiple consumers to subscribe to these topics to process the messages asynchronously. This decouples producers of data from consumers, enabling efficient communication and scalability in distributed systems. Brokers: In Kafka, a broker is a core component responsible for handling message storage, distribution, and replication. It serves as a server instance that stores and manages Kafka t...