Software Engineer – Node.js / Python
BackendPosted 3 weeks agovia Himalayas, a remote job board
- Work type
- RemoteIn India
- Experience
- 3–5 years
- Pay
- Not listedUsually ₹6.2–15 LPABackend, median at 1–9 years, in India (Payscale)
- Posted
- 3 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Originally posted on Himalayas
Interested?Software Engineer – Node.js / Python at SA Technologies
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Node.js, Python, REST APIs and 8 more
Interview questions for this job
For the skills the ad mentions: Node.js, Python, REST APIs, Microservices, SQL, Angular, React, AWS, Docker, Kubernetes and HTML and CSS.
What is "export default" in JavaScript?Node.js
It's part of the ES6 module system, described here. There is a helpful example in that documentation, also:
If a module defines a default export:
// foo.js export default function() { console.log("hello!") }then you can import that default export by omitting the curly braces:
import foo from "foo"; foo(); // hello!Update: As of June 2015, the module system is defined in §15.2 and the
exportsyntax in particular is defined in §15.2.3 of the ECMAScript 2015 specification.From Stack Overflow: asked by damphat, answered by p.s.w.g (CC BY-SA 4.0)
How do I use strings to call functions/methods?Python
There are various techniques.
The best is to use a dictionary that maps strings to functions. The primary advantage of this technique is that the strings do not need to match the names of the functions. This is also the primary technique used to emulate a case construct:
def a(): pass def b(): pass dispatch = {'go': a, 'stop': b} # Note lack of parens for funcs dispatch[get_input()]() # Note trailing parens to call functionUse the built-in function
getattr():import foo getattr(foo, 'bar')()
Note that
getattr()works on any object, including classes, class instances, modules, and so on.This is used in several places in the standard library, like this:
class Foo: def do_foo(self): ... def do_bar(self): ... f = getattr(foo_instance, 'do_' + opname) f()Use
locals()to resolve the function name:def myFunc(): print("hello") fname = "myFunc" f = locals()[fname] f()
From Python Frequently Asked Questions (PSF License Version 2)
What is the difference between put and post?REST APIs
- POST to a URL creates a child resource at a server defined URL.
- PUT to a URL creates/replaces the resource in its entirety at the client defined URL.
- PATCH to a URL updates part of the resource at that client defined URL. Links
- https://stackoverflow.com/questions/630453/put-vs-post-in-rest
From Java interview (MIT)
How to handle foreign key constraints when migrating from monolith to microservices?Microservices
There is no clear solution because this depends entirely on your context – in particular, along which dimensions your system is supposed to scale and what your actual problems are. Is the database really your bottleneck?
This (unfortunately rather lengthy) answer will read a bit like “microservices are bad, monoliths for life!”, but that's not my intention. My point is that microservices and distributed databases can solve various problems, but not without having some issues of their own. In order to make a strong argument for your architecture, you must show that these issues do not apply or can be mitigated, and that this architecture is the best choice for your business needs.
Distributed data is difficult.
The same flexibility that enables better scaling is the flip side of weaker guarantees. Notably, distributed systems are much much harder to reason about.
Atomic updates, transactions, consistency/referential integrity, and durability are extremely valuable and should not be waived rashly. There is little point in having data if it is incomplete, out of date, or outright wrong. When you have ACID as a business requirement but are using database technology that cannot offer it out of the box (e.g. many NoSQL databases, or a DB-per-microservice architecture), then your application must fill the gap and provide those guarantees.
This is not impossible to do, but tricky to get right. Very tricky. Especially in a distributed setting where there are multiple writers to each database. This difficulty translates to a high chance of bugs, possibly including dropped data, inconsistent data, and so on.
For example, consider reading the Jepsen analyses of well-known distributed database systems, perhaps starting with the analysis of Cassandra. I don't understand half of that analysis, but the TL;DR is that distributed systems are so difficult that even industry-leading projects sometimes get them wrong, in ways that can seem obvious in hindsight.
Distributed systems also imply a larger development effort. To a certain degree, there's a direct trade-off between development costs or dropping money on beefier hardware.
Example: dangling references
In practice, you should not look at computer science but at your business requirements to see whether and how ACID can be relaxed. E.g. many foreign-key relationships might not be as important as they seem. Consider a product – category n:m relationship. In a RDBMS we might use a foreign-key constraint so that only existing products and existing categories can be part of that relationship. What happens if we introduce separate product and category services, and a product or category is deleted?
In this case, that might not be a big problem and we can write our application so that it filters out any products or categories that no longer exist. But there are tradeoffs!
Note that this might require an application-level
JOINover multiple databases/microservices, which merely moves processing from the database server to your application. This increases total load and has to move extra data through the network.This can mess with pagination. E.g. you request the next 25 products from a category, and filter out unavailable products from that response. Now your application displays 23 products. In theory, a page with zero products would also be possible!
You will want to occasionally run a script that cleans up dangling references, either after each relevant change or on regular intervals. Note that such scripts are fairly expensive because they have to request every product/category from the backing database/microservice to see whether it still exists.
This should be obvious, but for clarity: do not reuse IDs. Autoincrement-style IDs may or may not be fine. GUIDs or hashes give you more flexibility, e.g. by being able to assign an ID before the item is inserted into a database.
Example: concurrent orders
Read the rest at the sourceFrom Software Engineering Stack Exchange: asked by Ray Saltrelli, answered by amon (CC BY-SA 4.0)
What does
ISNULL(price, 50)return if price is NULL?SQL50. The first non-NULL value is returned. Cross-database version:COALESCE(price, 50).From Cracking the SQL Interview (MIT)
Do you have any weaknesses?Behavioural
You should be honest when answering questions on your weaknesses. Say how you're working to improve them.
ExampleQuestion - "Do you have any weaknesses?"
Answer - "I struggle with time management on projects. To make sure I stick to the time frame I'm creating a timetable of steps at the start of each project".
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Backend EngineerWeekday, Delhi NCR, on-siteToday
- Backend DeveloperAarvexa, Remote in India +1Today
- Senior Software Engineer - PA183ZoomInfo Technologies LLC, Bengaluru, on-siteYesterday
- Senior Analyst - Actuarial ( Python Developer) Gurgaon (3 to 4 years exp in Automation) - 5 days WFOKipi.bi, Delhi NCR, on-siteYesterday
More like this: Backend developer jobs in India (935) and Remote Backend developer jobs in India (324)



