Vyapar54 open jobs

Fullstack Engineer (Backend)

Full-stackPosted over 2 months agofrom Vyapar's own hiring page

Work type
On-siteBengaluru
Experience
3–6 years
Pay
Not listedUsually ₹6.0–14 LPAFull-stack, median at 1–9 years, in India (Payscale)
Posted
Over 2 months agoOpen 4 months
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on REST APIs and Microservices

About the job

Experience: 3 To 6 Years

About Vyapar:
We are a technology and innovation company in the fintech space, delivering business accounting software to Micro, Small & Medium Enterprises (MSMEs). With more than 10 Million users across 140 countries, we are one of the fastest growing companies in this space. We take the complexity out of invoicing, inventory management & accounting, making it so simple, such that small businesses can spend less time on manual bookkeeping and spend more time focusing on areas of business that matter.
Role Summary:
Vyapar's Engineering team builds the technology platform that eases and digitizes our customers' bookkeeping and enables the transition of cumbersome accounting data from general bookkeeping to a digitized always available resource.We are seeking a talented Fullstack Engineer with a focus on backend development to join our dynamic tech department. The ideal candidate will have 3 to 6 years of experience in developing robust backend systems and a passion for creating scalable and efficient solutions.
Responsibilities:
  • Design, develop, and maintain backend services and APIs.
  • Collaborate with frontend developers to integrate user-facing elements with server-side logic.
  • Optimize backend code for maximum speed and scalability.
  • Participate in code reviews and provide constructive feedback to team members.
  • Implement security and data protection measures.

Requirement :
  • Bachelor's degree in Computer Science or related field.
  • Proven experience in backend development using languages.
  • Experience with relational and NoSQL databases.
  • Strong understanding of RESTful APIs and microservices architecture.
  • Ability to work in a fast-paced and collaborative environment.

Interested?Fullstack Engineer (Backend) at Vyapar

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on REST APIs and Microservices

Interview questions for this job

For the skills the ad mentions: REST APIs and Microservices.

135 questions
  • What is the proper REST response code for a valid request but empty data?REST APIs

    TL;DR: Use 404

    See This Blog. It explains it very well.

    Summary of the blog's comments on 204:

    1. 204 No Content is not terribly useful as a response code for a browser (although according to the HTTP spec browsers do need to understand it as a 'don't change the view' response code).
    2. 204 No Content is however, very useful for ajax web services which may want to indicate success without having to return something. (Especially in cases like DELETE or POSTs that don't require feedback).

    The answer, therefore, to your question is use 404 in your case. 204 is a specialized reponse code that you shouldn't often return to a browser in response to a GET.

    The other response codes are even less appropriate than 204 and 404:

    1. 200 should be returned with the body of whatever you successfully fetched. Not appropriate when the entity you're fetching doesn't exist.
    2. 202 is used when the server has begun work on an object but the object isn't fully ready yet. Certainly not the case here. You haven't begun, nor will you begin, construction of user 9 in response to a GET request. That breaks all sorts of rules.
    3. 400 is used in response to a poorly formatted HTTP request (for instance malformed http headers, incorrectly ordered segments, etc). This will almost certainly be handled by whatever framework you're using. You shouldn't have to deal with this unless you're writing your own server from scratch. Edit: Newer RFCs now allow for 400 to be used for semantically invalid requests.

    Wikipedia's description of the HTTP status codes are particularly helpful. You can also see the definitions in the HTTP/1.1 RFC2616 document at www.w3.org

    From Stack Overflow: asked by IMB, answered by Chris Pfohl (CC BY-SA 4.0)

  • How does data denormalization work with the Microservice Pattern?Microservices

    This is subjective but the following solution worked for me, my team, and our DB team.

    • At the application layer, Microservices are decomposed to semantic function.
      • e.g. a Contact service might CRUD contacts (metadata about contacts: names, phone numbers, contact info, etc.)
      • e.g. a User service might CRUD users with login credentials, authorization roles, etc.
      • e.g. a Payment service might CRUD payments and work under the hood with a 3rd party PCI compliant service like Stripe, etc.
    • At the DB layer, the tables can be organized however the devs/DBs/devops people want the tables organized

    The problem is with cascading and service boundaries: Payments might need a User to know who is making a payment. Instead of modeling your services like this:

    interface PaymentService {
        PaymentInfo makePayment(User user, Payment payment);
    }
    

    Model it like so:

    interface PaymentService {
        PaymentInfo makePayment(Long userId, Payment payment);
    }
    

    This way, entities that belong to other microservices only are referenced inside a particular service by ID, not by object reference. This allows DB tables to have foreign keys all over the place, but at the app layer "foreign" entities (that is, entities living in other services) are available via ID. This stops object cascading from growing out of control and cleanly delineates service boundaries.

    The problem it does incur is that it requires more network calls. For instance, if I gave each Payment entity a User reference, I could get the user for a particular payment with a single call:

    User user = paymentService.getUserForPayment(payment);
    

    But using what I'm suggesting here, you'll need two calls:

    Long userId = paymentService.getPayment(payment).getUserId();
    User user = userService.getUserById(userId);
    

    This may be a deal breaker. But if you're smart and implement caching, and implement well engineered microservices that respond in 50 - 100 ms each call, I have no doubt that these extra network calls can be crafted to not incur latency to the application.

    From Stack Overflow: asked by smeeb, answered by smeeb (CC BY-SA 3.0)

  • 400 vs 422 response to POST of dataREST APIs

    400 Bad Request would now seem to be the best HTTP/1.1 status code for your use case.

    At the time of your question (and my original answer), RFC 7231 was not a thing; at which point I objected to 400 Bad Request because RFC 2616 said (with emphasis mine):

    The request could not be understood by the server due to malformed syntax.

    and the request you describe is syntactically valid JSON encased in syntactically valid HTTP, and thus the server has no issues with the syntax of the request.

    However as pointed out by Lee Saferite in the comments, RFC 7231, which obsoletes RFC 2616, does not include that restriction:

    The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

    However, prior to that re-wording (or if you want to quibble about RFC 7231 only being a proposed standard right now), 422 Unprocessable Entity does not seem an incorrect HTTP status code for your use case, because as the introduction to RFC 4918 says:

    While the status codes provided by HTTP/1.1 are sufficient to describe most error conditions encountered by WebDAV methods, there are some errors that do not fall neatly into the existing categories. This specification defines extra status codes developed for WebDAV methods (Section 11)

    And the description of 422 says:

    The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.

    (Note the reference to syntax; I suspect 7231 partly obsoletes 4918 too)

    This sounds exactly like your situation, but just in case there was any doubt, it goes on to say:

    For example, this error condition may occur if an XML request body contains well-formed (i.e., syntactically correct), but semantically erroneous, XML instructions.

    (Replace "XML" with "JSON" and I think we can agree that's your situation)

    Now, some will object that RFC 4918 is about "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)" and that you (presumably) are doing nothing involving WebDAV so shouldn't use things from it.

    Given the choice between using an error code in the original standard that explicitly doesn't cover the situation, and one from an extension that describes the situation exactly, I would choose the latter.

    Furthermore, RFC 4918 Section 21.4 refers to the IANA Hypertext Transfer Protocol (HTTP) Status Code Registry, where 422 can be found.

    I propose that it is totally reasonable for an HTTP client or server to use any status code from that registry, so long as they do so correctly.

    Read the rest at the sourceFrom Stack Overflow: asked by David S, answered by Kristian Glass (CC BY-SA 4.0)

  • Should I use forever/pm2 within a (Docker) container?Microservices

    My take is do not use an in-container process supervisor (forever, pm2) and instead use docker restart policy via the --restart=always (or one of the other flavors of that option). This is more inline with the overall docker philosophy, and should operate very similarly to in-container process supervision since docker containers start running very quickly.

    The strongest advocate for running in-container process supervision I've seen is in the phusion baseimage-docker README if you want to explore the other position on this topic.

    From Stack Overflow: asked by Patrick, answered by Peter Lyons (CC BY-SA 3.0)

  • Which HTTP verb should I use to trigger an action in a REST web service?REST APIs

    If you want to be RESTful don't think of the verb to carry out an action, think of the state you want the resource to be in after the client has done something.

    So using one of your examples above you have an email queue that is sending emails. You want the client to put that email queue into the state of paused or stopped or something.

    So the client PUTs a new state to the server for that resource. It can be as simple as this JSON

    PUT http://myserver.com/services/email_service HTTP/1.1
    Content-Type: text/json
    {"status":"paused"}
    

    The server figures out how to get from the current status (say "running") to "paused" status/state.

    If the client does a GET on the resource it should return the state it is currently in (say "paused").

    The reason to do it this way, and why REST can be so powerful, is that you leave the HOW to get to that state up the server.

    The client just says "This is the state you should be in now" and the server figures out how to achieve that. It might be a simple flip in a database. It might require thousands of actions. The client doesn't care, and doesn't have to know.

    So you can completely rewrite/redesign how the server does that and the client doesn't care. The client only needs to be aware of the different states (and their representations) of a resource, not any of the internals.

    From Software Engineering Stack Exchange: asked by Renato Dinhani, answered by Cormac Mulhall (CC BY-SA 3.0)

  • Why do you think you're a good fit for our company?Behavioural

    Employers want to see that you have a genuine interest in working for them by asking questions like:

    • what do you know about our company?
    • why do you think you're a good fit for our company?
    • why do you want to work for us?

    To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.

    Show what you've learned about the company throughout the interview.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Full-stack developer jobs in Bengaluru (247), Jobs in Bengaluru (10,735) and Full-stack developer jobs in India (709)