News for hackers. Stuff that matters.

ratpik

Good plugin! Debugging is still harder than expected and tools like these do help.

For mocking downstream dependencies, can I get templates based on existing calls?

Re:Show HN: Videobug – The time travel debugger for JVM on Saturday May 07, 2022 @01:10AM (#31292311)
This can definitely help shorten the time to debug, especially for the hard to debug customer specific issues.

Looking forward to this!

Ask HN: How do you do authorization for background jobs?

When a flow is directly triggered by a users action, we have the Cookie/Token of the user to do AuthN/AuthZ.However when we need to run background jobs or some asynchronous workflow on behalf of the user, we do not have the Cookie/Token of the user. We do have the user id but not the session. How do you solve for AuthZ specifically for your background jobs and dependent microservices?

( Read More... | 2 comments | 3 points | on HN )
Re:Facebook loses users for the first time on Friday February 04, 2022 @12:28AM (#30203229)
I am not sure why they have been unable to build the right set of features to grow WhatsApp for Business in India.

That's almost a Billion DAUs where a lot of business transactions happen via chat on WhatsApp.

Ask HN: Tooling Around SNS?

We are planning to adopt SNS as a mechanism for services to publish events to. We will have 8-10 teams that will adopt this and then scale to 30 teams.We have been using Postman for the API development of HTTP APIs (debugging, testing, documentation, sharing with other teams).Is there something similar that helps with the development for APIs that are asynchronous?

( Read More... | no comments | on HN )

Ask HN: How do you do Distributed Transactions?

Context: We have a few microservices, each with their own MySQL databases that communicate with each other over HTTP 1.1. A few synchronous operations that constitute a single transaction require writes across two different microservices.The system can end in states where one of the microservices completes it part of the transaction but the other does not and there is no straightforward way to...

( Read More... | no comments | on HN )
Re:One Year of Excalidraw on Saturday January 02, 2021 @10:22AM (#25613370)
Love this tool! Discovered it just before the lockdown started and have used it as a collaboration tool in 100+ software engineering interviews since then.
Re:Ask HN: How to build full text search at scale? on Sunday March 22, 2020 @01:35PM (#22656770)
Added more details
Re:Ask HN: How to build full text search at scale? on Sunday March 22, 2020 @01:35PM (#22656766)
Scale - Added details to the post.

Search Engine - Elasticsearch

Ask HN: How to build full text search at scale?

Data Store - Elasticsearch Scale - 10 million writes/day (500 GB/day), about 100K search queries per dayTrying to figure out1 - How to control access to data (multi-tenancy where there are ~100K tenants)2 - Database design - Indexes and Shards and best practices around mixing different types of documents in a single index.

( Read More... | 5 comments | 4 points | on HN )
Re:An API Journey: From Idea to Deployment the Agile Way on Sunday April 29, 2018 @04:01PM (#16953645)
Disclaimer - I work at Postman.

IMHO this is a lot of learning overhead.

Postman allows me to design and mock APIs by simply adding my request and saving the example responses I would like my endpoints to return. The request/response format is what is natural to a web developer and does not need learning another DDL like RAML or OpenAPI/Swagger.

The mock url generated can be directly consumed by anyone without needing any local setup and allows decoupling the consumers of the API from the service deployment allowing parallel development tracks i.e being agile. The documentation comes out of the box when you create anything in Postman and can be shared with your API consumers.

I can then use the same Postman Collection to debug and test my APIs and eventually make it a part of my CI/CD process using their Newman CLI tool or just creating a Postman monitor which runs the API specification with tests on a pre defined schedule and notifies you when the tests fail or experience latency issues in production.

https://www.getpostman.com/products

Mobile phones companies will be next.

Ask HN: How do you triage issues from log dumps?

Given a dump of several logs files spanning across different components of your server side stack (like proxy, application server) what is the fastest technique/tool to determine what caused an error?I have a bunch of services running on AWS EC2 instances (with nginx and docker) managed with Elastic Beanstalk. Whenever someone reports an issue, we need to take a look at the logs for finding...

( Read More... | 1 comment | on HN )
Carbon Clean Solutions built a plant in Tuticorin in southern India that captures carbon dioxide from its coal-fired boiler and converts it into soda ash (a chemical cousin of the baking soda you buy in a grocery store). And, in what Sharma says is a world’s first, the commercial-scale plant set to capture 60,000 tons of CO2 annually does it so cheaply that it did not need any government subsidies.

Before Carbon Clean Solutions came along, the Tuticorin chemicals plant used to buy carbon dioxide to make its soda ash. It also bought coal to fire up its boiler. Now, instead of wasting carbon dioxide that burning coal produced, the plant is capturing it and saving the money on buying any more carbon dioxide. As a plus, the CO2 supply is also more reliable than before.

“I am a businessman,” Ramachandran Gopalan, the managing director of the Tuticorin plant, told the BBC. “I never thought about saving the planet. I needed a reliable stream of CO2, and this was the best way of getting it.”

https://qz.com/878674/two-indian-engineers-have-drastically-...

Re:Show HN: Insomnia REST Client now open-source on Thursday May 11, 2017 @12:40AM (#14313856)
Postman only has a v1 and v2 data format. No proprietary format. The formats and the SDKs [1] to use them are also open source. The transformer for converting between versions is also open source [2]. Importing works fine for me. You could leave an issue on Github if you found a bug while importing.

[1] - https://github.com/postmanlabs/postman-collection

[2] - https://github.com/postmanlabs/postman-collection-transforme...

Re:Ask HN: How do you version your data? on Monday February 20, 2017 @03:30AM (#13685488)
The most RESTFul way to do this would be to use content negotiation using the `content-type` header set to something like `application/com.vendor.product+json; data-version=2.1; api-version=3.4` where the minor version indicates data changes and the major version indicates schema changes to the data. You can club together the API and data versions into one version like '3.4.2.1' if you can define what a major/minor change to the API means. Exact details on how the client is exposed to the versioning will depend on the product requirements.

In terms of storing the data, we had a system where the content would be zipped after the content developers were done with the authoring and sent to a place which would convert it into appropriate JSON documents with the metadata and versioning information stored in the DB while the the document content could be stored in the cloud or a document database like Mongo or just Postgres. The content authors only knew excel who were trained to follow a schema while writing the content. That was like a low cost CMS. You can update only the content that has a diff or the entire content depending on how well you can identify a diff for the content. The entire content makes it simple.

Re:Ask HN: What inspires you to persevere through adversity? on Sunday January 22, 2017 @02:48PM (#13456958)
Having a constant that stays with you in good times and bad has helped me. Could be a person, a piece of music, a book, a video/tv series/movie or just a long a walk.

Following stoicism helps. I read the book listed below that explains it well. My main takeaway from that book was that it is much easier to be happy if one stops caring about two things - External validation and Instant Gratification.

"One of the great fears many of us face is that despite all our effort and striving, we will discover at the end that we have wasted our life." - https://www.goodreads.com/book/show/5617966-a-guide-to-the-g...

https://www.goodreads.com/book/show/26043368-the-gita-for-ch... answers questions like 'How can one win a war when it involves killing ones own family?' with teachings like 'Do your duty with single minded focus and great sincerity, without worrying about the results of the work'

Ask HN: How do you teach problem solving skills to software engineers?

More often than not, I get people who have decent work experience and seem suited for a role but fail to unlearn and re-learn new ways of doing things. A lot of these people tend to come from a service company background where they do not dive deep into solving problems with code and instead try to cut-paste from across the internet which is good enough for projects that might not ever get...

( Read More... | 1 comment | 2 points | on HN )

Older »